Skip to content

Commit

Permalink
skip some symbols originating from other modules
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Nov 1, 2023
1 parent 949e008 commit f646834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/superduperreload/superduperreload.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ def _poll_module_changes_once(self) -> None:
classes_to_check = set()
symbols_to_check = set()
for obj in itertools.chain([m], m.__dict__.values()):
# TODO: skip symbols for which the original definition was in a different module
# TODO: more precise way to skip symbols for which the original definition was in a different module
if hasattr(obj, "__module__") and obj.__module__ != m.__name__:
continue
if type(obj) is type:
classes_to_check.add(obj)
for subclass in obj.__subclasses__():
Expand Down

0 comments on commit f646834

Please sign in to comment.