[ty] Add an instance of an Any subclass to the property tests (#19180)

This commit is contained in:
Alex Waygood 2025-07-08 10:53:50 +01:00 committed by GitHub
parent 1ddda241f6
commit 220a584c11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 1 deletions

View file

@ -156,6 +156,9 @@ pub enum KnownModule {
TyExtensions,
#[strum(serialize = "importlib")]
ImportLib,
#[cfg(test)]
#[strum(serialize = "unittest.mock")]
UnittestMock,
}
impl KnownModule {
@ -175,6 +178,8 @@ impl KnownModule {
Self::TypeCheckerInternals => "_typeshed._type_checker_internals",
Self::TyExtensions => "ty_extensions",
Self::ImportLib => "importlib",
#[cfg(test)]
Self::UnittestMock => "unittest.mock",
}
}