Skip to content

Commit 796109a

Browse files
Fix NoneType reference in Python <3.10.
1 parent e1dca25 commit 796109a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec_classes/utils/type_checking.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def type_label(attr_type: Type) -> str:
147147
`attr_type` points to a `spec_cls` decorated type, we don't make this
148148
method general.
149149
"""
150-
if attr_type is types.NoneType:
150+
if attr_type is type(None):
151151
return "None"
152152
if (
153153
sys.version_info >= (3, 10)

0 commit comments

Comments
 (0)