pep 484: last reexports (#4609)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-10-04 14:51:04 -07:00
committed by GitHub
parent 723a23abfc
commit e428f2d479
2 changed files with 12 additions and 12 deletions

View File

@@ -6,9 +6,9 @@ if sys.version_info >= (3, 5):
from typing import AsyncContextManager, AsyncIterator
if sys.version_info >= (3, 6):
from typing import ContextManager as AbstractContextManager
AbstractContextManager = ContextManager
if sys.version_info >= (3, 7):
from typing import AsyncContextManager as AbstractAsyncContextManager
AbstractAsyncContextManager = AsyncContextManager
_T = TypeVar("_T")
_T_io = TypeVar("_T_io", bound=Optional[IO[str]])

View File

@@ -1,7 +1,10 @@
from typing import Any
from typing import Any, Dict, Optional
from jinja2.filters import FILTERS as DEFAULT_FILTERS
from jinja2.tests import TESTS as DEFAULT_TESTS
from jinja2.filters import FILTERS
from jinja2.tests import TESTS
DEFAULT_FILTERS = FILTERS
DEFAULT_TESTS = TESTS
BLOCK_START_STRING: str
BLOCK_END_STRING: str
@@ -9,14 +12,11 @@ VARIABLE_START_STRING: str
VARIABLE_END_STRING: str
COMMENT_START_STRING: str
COMMENT_END_STRING: str
LINE_STATEMENT_PREFIX: Any
LINE_COMMENT_PREFIX: Any
LINE_STATEMENT_PREFIX: Optional[str]
LINE_COMMENT_PREFIX: Optional[str]
TRIM_BLOCKS: bool
LSTRIP_BLOCKS: bool
NEWLINE_SEQUENCE: str
KEEP_TRAILING_NEWLINE: bool
DEFAULT_NAMESPACE: Any
# Names in __all__ with no definition:
# DEFAULT_FILTERS
# DEFAULT_TESTS
DEFAULT_NAMESPACE: Dict[str, Any]
DEFAULT_POLICIES = Dict[str, Any]