Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Jun 17, 2024
1 parent b5c8136 commit 21b27bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/property_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def main() -> int:
annotations = convert_any.mapping_to_object_mapping(
getattr(c, "__annotations__", None)
)
if not annotations:
if annotations is None:
continue
for k, v in annotations.items():
if not isinstance(k, str):
Expand All @@ -221,7 +221,7 @@ def main() -> int:
keywords = convert_any.mapping_to_object_mapping(
getattr(v, "keywords", None)
)
if not keywords:
if keywords is None:
continue
typed_keywords: dict[str, object] = {
typed_k: typed_v
Expand Down

0 comments on commit 21b27bf

Please sign in to comment.