We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff5b879 commit 7cac5b9Copy full SHA for 7cac5b9
1 file changed
traitlets/traitlets.py
@@ -505,6 +505,11 @@ def instance_init(self, obj: t.Any) -> None:
505
506
K = TypeVar("K", default=str)
507
V = TypeVar("V", default=t.Any)
508
+else:
509
+ # This is required to avoid warnings about unresolved references when generating
510
+ # the documentation of downstream projects.
511
+ K = TypeVar("K")
512
+ V = TypeVar("V")
513
514
515
# We use a type for the getter (G) and setter (G) because we allow
0 commit comments