[red-knot] Basic support for other legacy typing aliases (#14998)

## Summary

Resolves #14997.

## Test Plan

Markdown tests.
This commit is contained in:
InSync 2024-12-17 16:33:15 +07:00 committed by GitHub
parent 867a8f9497
commit 7c2e7cf25e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 197 additions and 72 deletions

View file

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