mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
[ty] Remove unused variants from various Known*
enums (#18015)
## Summary `KnownClass::Range`, `KnownInstanceType::Any` and `ClassBase::any()` are no longer used or useful: all our tests pass with them removed. `KnownModule::Abc` _is_ now used outside of tests, however, so I removed the `#[allow(dead_code)]` branch above that variant. ## Test Plan `cargo test -p ty_python_semantic`
This commit is contained in:
parent
ff7ebecf89
commit
669855d2b5
7 changed files with 2 additions and 73 deletions
|
@ -114,8 +114,7 @@ pub enum KnownModule {
|
|||
TypingExtensions,
|
||||
Typing,
|
||||
Sys,
|
||||
#[allow(dead_code)]
|
||||
Abc, // currently only used in tests
|
||||
Abc,
|
||||
Dataclasses,
|
||||
Collections,
|
||||
Inspect,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue