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 e0f1611 commit d057b49Copy full SHA for d057b49
1 file changed
stdlib/xml/etree/ElementTree.pyi
@@ -78,9 +78,8 @@ def canonicalize(
78
) -> None: ...
79
80
# The tag for Element can be set to the Comment or ProcessingInstruction
81
-# functions defined in this module. _ElementCallable could be a recursive
82
-# type, but defining it that way uncovered a bug in pytype.
83
-_ElementCallable: TypeAlias = Callable[..., Element[Any]]
+# functions defined in this module.
+_ElementCallable: TypeAlias = Callable[..., Element[_ElementCallable]]
84
_CallableElement: TypeAlias = Element[_ElementCallable]
85
86
_Tag = TypeVar("_Tag", default=str, bound=str | _ElementCallable)
0 commit comments