mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 04:04:25 +08:00
jinja2: Allow Sequence for Environment names (#4677)
This commit is contained in:
6
third_party/2and3/jinja2/environment.pyi
vendored
6
third_party/2and3/jinja2/environment.pyi
vendored
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Text, Type, Union
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Sequence, Text, Type, Union
|
||||
|
||||
from .bccache import BytecodeCache
|
||||
from .loaders import BaseLoader
|
||||
@@ -133,11 +133,11 @@ class Environment:
|
||||
self, name: Union[Template, Text], parent: Optional[Text] = ..., globals: Optional[Any] = ...
|
||||
) -> Template: ...
|
||||
def select_template(
|
||||
self, names: List[Union[Template, Text]], parent: Optional[Text] = ..., globals: Optional[Dict[str, Any]] = ...
|
||||
self, names: Sequence[Union[Template, Text]], parent: Optional[Text] = ..., globals: Optional[Dict[str, Any]] = ...
|
||||
) -> Template: ...
|
||||
def get_or_select_template(
|
||||
self,
|
||||
template_name_or_list: Union[Union[Template, Text], List[Union[Template, Text]]],
|
||||
template_name_or_list: Union[Union[Template, Text], Sequence[Union[Template, Text]]],
|
||||
parent: Optional[Text] = ...,
|
||||
globals: Optional[Dict[str, Any]] = ...,
|
||||
) -> Template: ...
|
||||
|
||||
Reference in New Issue
Block a user