summaryrefslogtreecommitdiff
path: root/tests/functional/u/unused/unused_import_py39.py
blob: 2a897b1741dc08f979d8b4b99b35bc51dfb9a19a (plain)
1
2
3
4
5
6
7
8
9
10
"""
Test that a constant parameter of `typing.Annotated` does not emit `unused-import`.
`typing.Annotated` was introduced in Python version 3.9
"""

from pathlib import Path  # [unused-import]
import typing as t


example: t.Annotated[str, "Path"] = "/foo/bar"