File: _lowlevel.pyi

package info (click to toggle)
python-minijinja 2.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: python: 723; makefile: 40; sh: 31
file content (17 lines) | stat: -rw-r--r-- 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from typing import Any, Optional
from minijinja import Environment

class State:
    """A reference to the current state."""

    @property
    def env(self) -> Environment: ...
    @property
    def name(self) -> str: ...
    @property
    def auto_escape(self) -> Optional[str]: ...
    @property
    def current_block(self) -> Optional[str]: ...
    def lookup(self, name: str) -> Any: ...
    def get_temp(self, name: str, default: Optional[Any] = None) -> Any: ...
    def set_temp(self, name: str, value: Any) -> Any: ...