Skip to content

Commit

Permalink
_Attrib.get, mark the default argument as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Nov 24, 2023
1 parent f0290b5 commit 21be9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxml-stubs/etree.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class _Attrib:
def __getitem__(self, key: _AnyStr) -> _AnyStr: ...
def __bool__(self) -> bool: ...
def __len__(self) -> int: ...
def get(self, key: _AnyStr, default: _AnyStr = ...) -> Optional[_AnyStr]: ...
def get(self, key: _AnyStr, default: Optional[_AnyStr] = ...) -> Optional[_AnyStr]: ...
def keys(self) -> _ListAnyStr: ...
def __iter__(self) -> Iterator[_AnyStr]: ... # actually _AttribIterator
def iterkeys(self) -> Iterator[_AnyStr]: ...
Expand Down

0 comments on commit 21be9ec

Please sign in to comment.