Skip to content

Commit

Permalink
mark two parser arguments as being optional (GH-94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c authored Jan 2, 2024
1 parent 0684a00 commit 67097e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxml-stubs/etree.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def SubElement(
def ElementTree(
element: _Element = ...,
file: _FileSource = ...,
parser: _AnyParser = ...,
parser: Optional[_AnyParser] = ...,
) -> _ElementTree: ...
def ProcessingInstruction(
target: _AnyStr, text: _AnyStr = ...
Expand All @@ -513,7 +513,7 @@ def cleanup_namespaces(
) -> None: ...
def parse(
source: _FileSource,
parser: _AnyParser = ...,
parser: Optional[_AnyParser] = ...,
base_url: _AnyStr = ...,
) -> Union[_ElementTree, Any]: ...
@overload
Expand Down

0 comments on commit 67097e5

Please sign in to comment.