mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00

## Summary I think this code has existed since the start of `typing.Annotated` support (https://github.com/astral-sh/ruff/pull/333), and was then overlooked over a series of refactors. Closes https://github.com/astral-sh/ruff/issues/10279.
7 lines
196 B
Python
7 lines
196 B
Python
"""Test: ensure that we treat strings in `typing.Annotation` as type definitions."""
|
|
|
|
from pathlib import Path
|
|
from re import RegexFlag
|
|
from typing import Annotated
|
|
|
|
p: Annotated["Path", int] = 1
|