Skip to content

Commit

Permalink
fixed function to compare types of attributes not names
Browse files Browse the repository at this point in the history
  • Loading branch information
grayson-helmholz committed Oct 18, 2024
1 parent cd2cd6f commit 06f3a41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@


def pick_newtype_attrs(some_type: type) -> list:
return [attr for attr in dir(some_type) if type(attr) is typing.NewType]
return [
attr
for attr in dir(some_type)
if type(getattr(some_type, attr)) is typing.NewType
]


nitpick_temp_edge_names = pick_newtype_attrs(EdgeQuantumNumbers)
Expand Down

0 comments on commit 06f3a41

Please sign in to comment.