From 21b27bfbc9b8e6796ff8c825056225fd442a867d Mon Sep 17 00:00:00 2001 From: Isamu Mogi Date: Mon, 17 Jun 2024 09:07:30 +0900 Subject: [PATCH] wip --- tools/property_typing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/property_typing.py b/tools/property_typing.py index 8d6b0cbd5..eee668686 100755 --- a/tools/property_typing.py +++ b/tools/property_typing.py @@ -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): @@ -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