Skip to content

Commit

Permalink
Fix changes for newer mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Mar 14, 2024
1 parent 9e58980 commit ae8ffb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsel/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .utils import extract_regex, flatten, iflatten, shorten

_SelectorType = TypeVar("_SelectorType", bound="Selector")
_ParserType = Union[etree.XMLParser[etree._Element], etree.HTMLParser[etree._Element]]
_ParserType = Union[etree.XMLParser, etree.HTMLParser] # type: ignore[type-arg]
# simplified _OutputMethodArg from types-lxml
_TostringMethodType = Literal[
"html",
Expand Down

0 comments on commit ae8ffb1

Please sign in to comment.