mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
[red-knot] Infer Literal
types from comparisons with sys.version_info
(#14244)
This commit is contained in:
parent
b3b5c19105
commit
fc15d8a3bd
4 changed files with 222 additions and 9 deletions
|
@ -14,6 +14,7 @@ pub(crate) enum CoreStdlibModule {
|
|||
Typeshed,
|
||||
TypingExtensions,
|
||||
Typing,
|
||||
Sys,
|
||||
}
|
||||
|
||||
impl CoreStdlibModule {
|
||||
|
@ -24,6 +25,7 @@ impl CoreStdlibModule {
|
|||
Self::Typing => "typing",
|
||||
Self::Typeshed => "_typeshed",
|
||||
Self::TypingExtensions => "typing_extensions",
|
||||
Self::Sys => "sys",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue