Skip to content

Commit 02a2deb

Browse files
authored
Codegen: fix python compatibility problem
1 parent 7cc2058 commit 02a2deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/codegen/loaders/schemaloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def modify(self, prop: schema.Property):
1919
prop.name = self.name.rstrip("_")
2020

2121

22-
def _get_name(x: str | type | None):
22+
def _get_name(x: typing.Optional[typing.Union[str, type]]):
2323
if x is None:
2424
return None
2525
if isinstance(x, str):

0 commit comments

Comments
 (0)