[ty] Add support for PEP 750 t-strings (#20085)
This PR attempts to adds support for inferring`string.templatelib.Template` for t-string literals.
This commit is contained in:
@@ -270,6 +270,8 @@ pub enum KnownModule {
|
||||
Dataclasses,
|
||||
Collections,
|
||||
Inspect,
|
||||
#[strum(serialize = "string.templatelib")]
|
||||
Templatelib,
|
||||
#[strum(serialize = "_typeshed._type_checker_internals")]
|
||||
TypeCheckerInternals,
|
||||
TyExtensions,
|
||||
@@ -305,6 +307,7 @@ impl KnownModule {
|
||||
Self::UnittestMock => "unittest.mock",
|
||||
#[cfg(test)]
|
||||
Self::Uuid => "uuid",
|
||||
Self::Templatelib => "string.templatelib",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user