Skip to content

Commit

Permalink
Fix NoneType reference in Python <3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwardrop committed Jan 13, 2025
1 parent e1dca25 commit 796109a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_classes/utils/type_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def type_label(attr_type: Type) -> str:
`attr_type` points to a `spec_cls` decorated type, we don't make this
method general.
"""
if attr_type is types.NoneType:
if attr_type is type(None):
return "None"
if (
sys.version_info >= (3, 10)
Expand Down

0 comments on commit 796109a

Please sign in to comment.