Skip to content

Commit

Permalink
Merge pull request #300 from neutrinoceros/tst/filter_type_aliases
Browse files Browse the repository at this point in the history
TST: fix a meta test
  • Loading branch information
neutrinoceros authored Apr 4, 2024
2 parents e614022 + 18ddbbf commit 799b56b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_interfaces/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def get_classes_from(module: ModuleType) -> List[Type]:
for objname in module.__all__:
obj = module.__dict__[objname]
if inspect.isclass(obj):
if obj.__class__ is type:
continue
if issubclass(obj, (Protocol, Enum)): # type: ignore [arg-type]
continue
retv.append(obj)
Expand Down

0 comments on commit 799b56b

Please sign in to comment.