We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cc2058 commit 02a2debCopy full SHA for 02a2deb
1 file changed
misc/codegen/loaders/schemaloader.py
@@ -19,7 +19,7 @@ def modify(self, prop: schema.Property):
19
prop.name = self.name.rstrip("_")
20
21
22
-def _get_name(x: str | type | None):
+def _get_name(x: typing.Optional[typing.Union[str, type]]):
23
if x is None:
24
return None
25
if isinstance(x, str):
0 commit comments