ruff/crates/ruff_linter/resources/test/fixtures/pyflakes/F821_16.py
2023-09-20 08:38:27 +02:00

11 lines
234 B
Python

"""Test case: `Literal` with `__future__` annotations."""
from __future__ import annotations
from typing import Literal, Final
from typing_extensions import assert_type
CONSTANT: Final = "ns"
assert_type(CONSTANT, Literal["ns"])