[red-knot] Infer Literal types from comparisons with sys.version_info (#14244)
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user