mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Codegen: fix python compatibility problem
This commit is contained in:
@@ -19,7 +19,7 @@ class _PropertyNamer(schema.PropertyModifier):
|
||||
prop.name = self.name.rstrip("_")
|
||||
|
||||
|
||||
def _get_name(x: str | type | None):
|
||||
def _get_name(x: typing.Optional[typing.Union[str, type]]):
|
||||
if x is None:
|
||||
return None
|
||||
if isinstance(x, str):
|
||||
|
||||
Reference in New Issue
Block a user