We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66e3b36 commit 0e62542Copy full SHA for 0e62542
pcweb/pages/docs/component.py
@@ -479,7 +479,11 @@ def prop_docs(
479
480
elif origin is dict:
481
key_type = args[0].__name__ if args else "Any"
482
- value_type = args[1].__name__ if len(args) > 1 else "Any"
+ value_type = (
483
+ (args[1].__name__ if hasattr(args[1], "__name__") else str(args[1]))
484
+ if len(args) > 1
485
+ else "Any"
486
+ )
487
type_name = f"Dict[{key_type}, {value_type}]"
488
short_type_name = "Dict"
489
0 commit comments