Lines Matching refs:Optional
75 self, environment: "Environment", template_name: t.Optional[str] = None
92 def get_eval_context(node: "Node", ctx: t.Optional[EvalContext]) -> EvalContext:
125 environment: t.Optional["Environment"]
147 exclude: t.Optional[t.Container[str]] = None,
148 only: t.Optional[t.Container[str]] = None,
169 exclude: t.Optional[t.Container[str]] = None,
170 only: t.Optional[t.Container[str]] = None,
184 def find(self, node_type: t.Type[_NodeBound]) -> t.Optional[_NodeBound]:
331 test: t.Optional[Node]
461 filter: t.Optional["Filter"]
470 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
497 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
521 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
585 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
592 lineno: t.Optional[int] = None,
612 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:
631 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Tuple[t.Any, ...]:
648 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.List[t.Any]:
662 self, eval_ctx: t.Optional[EvalContext] = None
676 self, eval_ctx: t.Optional[EvalContext] = None
689 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Tuple[str, t.Any]:
702 expr2: t.Optional[Expr]
704 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
717 node: t.Union["_FilterTestCommon", "Call"], eval_ctx: t.Optional[EvalContext]
743 dyn_args: t.Optional[Expr]
744 dyn_kwargs: t.Optional[Expr]
748 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
793 node: t.Optional[Expr] # type: ignore
795 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
827 dyn_args: t.Optional[Expr]
828 dyn_kwargs: t.Optional[Expr]
839 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
863 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
881 start: t.Optional[Expr]
882 stop: t.Optional[Expr]
883 step: t.Optional[Expr]
885 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> slice:
888 def const(obj: t.Optional[Expr]) -> t.Optional[t.Any]:
904 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> str:
918 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
994 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
1004 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> t.Any:
1087 def as_const(self, eval_ctx: t.Optional[EvalContext] = None) -> Markup:
1103 self, eval_ctx: t.Optional[EvalContext] = None