mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Annotate **kwargs with dictionary value type only (#320)
This commit is contained in:
@@ -20,7 +20,7 @@ class Element(Sequence['Element']):
|
||||
attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes]
|
||||
text = ... # type: Optional[_str_or_bytes]
|
||||
tail = ... # type: Optional[_str_or_bytes]
|
||||
def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: Dict[str, AnyStr]) -> None: ...
|
||||
def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> None: ...
|
||||
def append(self, subelement: 'Element') -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
def copy(self) -> 'Element': ...
|
||||
@@ -46,7 +46,7 @@ class Element(Sequence['Element']):
|
||||
def __len__(self) -> int: ...
|
||||
def __setitem__(self, index: int, element: 'Element') -> None: ...
|
||||
|
||||
def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., **extra: Dict[str, AnyStr]) -> Element: ...
|
||||
def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> Element: ...
|
||||
def Comment(text: _str_or_bytes=...) -> Element: ...
|
||||
def ProcessingInstruction(target: str, text: str=...) -> Element: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user