mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
xml.etree: remove pytype workaround (#14602)
This commit is contained in:
@@ -78,9 +78,8 @@ def canonicalize(
|
||||
) -> None: ...
|
||||
|
||||
# The tag for Element can be set to the Comment or ProcessingInstruction
|
||||
# functions defined in this module. _ElementCallable could be a recursive
|
||||
# type, but defining it that way uncovered a bug in pytype.
|
||||
_ElementCallable: TypeAlias = Callable[..., Element[Any]]
|
||||
# functions defined in this module.
|
||||
_ElementCallable: TypeAlias = Callable[..., Element[_ElementCallable]]
|
||||
_CallableElement: TypeAlias = Element[_ElementCallable]
|
||||
|
||||
_Tag = TypeVar("_Tag", default=str, bound=str | _ElementCallable)
|
||||
|
||||
Reference in New Issue
Block a user