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 ab0f6ab commit 432ac81Copy full SHA for 432ac81
lxml-stubs/etree.pyi
@@ -322,7 +322,10 @@ class _Attrib:
322
def __getitem__(self, key: _AnyStr) -> _AnyStr: ...
323
def __bool__(self) -> bool: ...
324
def __len__(self) -> int: ...
325
- def get(self, key: _AnyStr, default: _AnyStr = ...) -> Optional[_AnyStr]: ...
+ @overload
326
+ def get(self, key: _TagName) -> Optional[str]: ...
327
328
+ def get(self, key: _TagName, default: _T) -> Union[str, _T]: ...
329
def keys(self) -> _ListAnyStr: ...
330
def __iter__(self) -> Iterator[_AnyStr]: ... # actually _AttribIterator
331
def iterkeys(self) -> Iterator[_AnyStr]: ...
0 commit comments