[red-knot] Infer Literal types from comparisons with sys.version_info (#14244)

This commit is contained in:
Alex Waygood 2024-11-11 13:58:16 +00:00 committed by GitHub
parent b3b5c19105
commit fc15d8a3bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 222 additions and 9 deletions

View file

@ -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",
}
}