mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-07 21:25:08 +00:00
[pyflakes
] Visit forward annotations in TypeAliasType
as types (F401
) (#15829)
## Summary Fixes https://github.com/astral-sh/ruff/issues/15812 by visiting the second argument as a type definition. ## Test Plan New F401 tests based on the report. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
4f2aea8d50
commit
fe516e24f5
5 changed files with 136 additions and 3 deletions
|
@ -28,6 +28,7 @@ pub enum Callable {
|
|||
NamedTuple,
|
||||
TypedDict,
|
||||
MypyExtension,
|
||||
TypeAliasType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue