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

b09a537c7d35c5db68bfb0502c500e8c543ed96a
<mask token>

<mask token>


@contextmanager
def strict_optional_set(value: bool) ->Iterator[None]:
    global STRICT_OPTIONAL
    saved = STRICT_OPTIONAL
    STRICT_OPTIONAL = value
    yield
    STRICT_OPTIONAL = saved

<mask token>
STRICT_OPTIONAL = False
find_occurrences = None


@contextmanager
def strict_optional_set(value: bool) ->Iterator[None]:
    global STRICT_OPTIONAL
    saved = STRICT_OPTIONAL
    STRICT_OPTIONAL = value
    yield
    STRICT_OPTIONAL = saved

from contextlib import contextmanager
from typing import Optional, Tuple, Iterator
STRICT_OPTIONAL = False
find_occurrences = None


@contextmanager
def strict_optional_set(value: bool) ->Iterator[None]:
    global STRICT_OPTIONAL
    saved = STRICT_OPTIONAL
    STRICT_OPTIONAL = value
    yield
    STRICT_OPTIONAL = saved

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
