This commit is contained in:
Ashwin Bharambe 2025-09-29 21:24:26 -07:00
parent 3b7982c59f
commit 44c702f9ca
2 changed files with 7 additions and 5 deletions

View file

@ -92,7 +92,7 @@ def get_class_property_docstrings(
:returns: A dictionary mapping property names to descriptions.
"""
result = {}
result: Dict[str, str] = {}
# Only try to get MRO if data_type is actually a class
# Special types like Literal, Union, etc. don't have MRO
if not inspect.isclass(data_type):