mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
[red-knot] Fixup a few edge cases regarding type[]
(#14918)
This commit is contained in:
parent
53f2d72e02
commit
58930905eb
2 changed files with 48 additions and 17 deletions
|
@ -15,6 +15,8 @@ pub(crate) enum CoreStdlibModule {
|
|||
TypingExtensions,
|
||||
Typing,
|
||||
Sys,
|
||||
#[allow(dead_code)]
|
||||
Abc, // currently only used in tests
|
||||
}
|
||||
|
||||
impl CoreStdlibModule {
|
||||
|
@ -26,6 +28,7 @@ impl CoreStdlibModule {
|
|||
Self::Typeshed => "_typeshed",
|
||||
Self::TypingExtensions => "typing_extensions",
|
||||
Self::Sys => "sys",
|
||||
Self::Abc => "abc",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue