mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 08:00:19 +00:00
[ty] Add an instance of an Any
subclass to the property tests (#19180)
This commit is contained in:
parent
1ddda241f6
commit
220a584c11
2 changed files with 19 additions and 1 deletions
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue