/usr/lib/python3/dist-packages/mypy/experiments.py is in python3-mypy 0.560-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | from contextlib import contextmanager
from typing import Optional, Tuple, Iterator
STRICT_OPTIONAL = False
find_occurrences = None # type: Optional[Tuple[str, str]]
@contextmanager
def strict_optional_set(value: bool) -> Iterator[None]:
global STRICT_OPTIONAL
saved = STRICT_OPTIONAL
STRICT_OPTIONAL = value
yield
STRICT_OPTIONAL = saved
|