[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:
Alex Waygood
2025-05-11 11:18:55 +01:00
committed by GitHub
parent ff7ebecf89
commit 669855d2b5
7 changed files with 2 additions and 73 deletions

View File

@@ -114,8 +114,7 @@ pub enum KnownModule {
TypingExtensions,
Typing,
Sys,
#[allow(dead_code)]
Abc, // currently only used in tests
Abc,
Dataclasses,
Collections,
Inspect,