Skip to content

Commit

Permalink
note hacky use of undoccumented attr
Browse files Browse the repository at this point in the history
  • Loading branch information
A-UNDERSCORE-D committed Aug 6, 2021
1 parent c236798 commit dc7c745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def worker(self) -> None: # noqa: C901, CCR001

# Watchdog thread -- there is a way to get this by using self.observer.emitters and checking for an attribute:
# watch, but that may have unforseen differences in behaviour.
# Note: Uses undocumented attribute
# HACK: Uses undocumented attribute
emitter = self.observed and self.observer._emitter_for_watch[self.observed] # type: ignore

logger.debug('Entering loop...')
Expand Down

0 comments on commit dc7c745

Please sign in to comment.