mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
[red-knot] Basic support for other legacy typing
aliases (#14998)
## Summary Resolves #14997. ## Test Plan Markdown tests.
This commit is contained in:
parent
867a8f9497
commit
7c2e7cf25e
6 changed files with 197 additions and 72 deletions
|
@ -17,6 +17,7 @@ pub(crate) enum CoreStdlibModule {
|
|||
Sys,
|
||||
#[allow(dead_code)]
|
||||
Abc, // currently only used in tests
|
||||
Collections,
|
||||
}
|
||||
|
||||
impl CoreStdlibModule {
|
||||
|
@ -29,6 +30,7 @@ impl CoreStdlibModule {
|
|||
Self::TypingExtensions => "typing_extensions",
|
||||
Self::Sys => "sys",
|
||||
Self::Abc => "abc",
|
||||
Self::Collections => "collections",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue