-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Set autodoc_typehints = 'none' in conf.py (for the moment, type aliases expansion is huge, reconsider for the v3.0.0 after a refactoring of type hints)
- Loading branch information
Showing
5 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
# @author Davide Brunato <[email protected]> | ||
# | ||
from typing import TYPE_CHECKING, Any, Dict, Optional, Iterator, Union, Type | ||
import typing | ||
|
||
from .namespaces import NamespacesType | ||
from .xpath_context import ContextRootType, XPathContext | ||
|
@@ -17,7 +18,7 @@ | |
from .xpath1 import XPath1Parser | ||
from .xpath30 import XPath30Parser | ||
|
||
ParserType = Union[Type[XPath1Parser], Type[XPath2Parser], Type[XPath30Parser]] | ||
ParserType = typing.Union[Type[XPath1Parser], Type[XPath2Parser], Type[XPath30Parser]] | ||
else: | ||
ParserType = XPath2Parser | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters