Remove memoryview as a KnownClass
This commit is contained in:
@@ -1154,7 +1154,6 @@ class C:
|
||||
a_tuple: tuple[int] = (1,)
|
||||
a_range: range = range(1)
|
||||
a_slice: slice = slice(1)
|
||||
a_memoryview: memoryview = memoryview(b"a")
|
||||
a_type: type = int
|
||||
a_none: None = None
|
||||
|
||||
@@ -1167,7 +1166,6 @@ reveal_type(C.a_complex) # revealed: int | float | complex
|
||||
reveal_type(C.a_tuple) # revealed: tuple[int]
|
||||
reveal_type(C.a_range) # revealed: range
|
||||
reveal_type(C.a_slice) # revealed: slice
|
||||
reveal_type(C.a_memoryview) # revealed: memoryview
|
||||
reveal_type(C.a_type) # revealed: type
|
||||
reveal_type(C.a_none) # revealed: None
|
||||
```
|
||||
|
||||
@@ -1374,7 +1374,6 @@ impl<'db> Type<'db> {
|
||||
| KnownClass::Dict
|
||||
| KnownClass::Slice
|
||||
| KnownClass::Range
|
||||
| KnownClass::MemoryView
|
||||
| KnownClass::Property
|
||||
| KnownClass::BaseException
|
||||
| KnownClass::BaseExceptionGroup
|
||||
@@ -1473,8 +1472,7 @@ impl<'db> Type<'db> {
|
||||
| KnownClass::Bytes
|
||||
| KnownClass::Tuple
|
||||
| KnownClass::Slice
|
||||
| KnownClass::Range
|
||||
| KnownClass::MemoryView,
|
||||
| KnownClass::Range,
|
||||
),
|
||||
"__get__",
|
||||
) => Symbol::Unbound,
|
||||
@@ -2706,7 +2704,6 @@ pub enum KnownClass {
|
||||
Dict,
|
||||
Slice,
|
||||
Range,
|
||||
MemoryView,
|
||||
Property,
|
||||
BaseException,
|
||||
BaseExceptionGroup,
|
||||
@@ -2762,7 +2759,6 @@ impl<'db> KnownClass {
|
||||
Self::Type => "type",
|
||||
Self::Slice => "slice",
|
||||
Self::Range => "range",
|
||||
Self::MemoryView => "memoryview",
|
||||
Self::Property => "property",
|
||||
Self::BaseException => "BaseException",
|
||||
Self::BaseExceptionGroup => "BaseExceptionGroup",
|
||||
@@ -2849,7 +2845,6 @@ impl<'db> KnownClass {
|
||||
| Self::BaseExceptionGroup
|
||||
| Self::Slice
|
||||
| Self::Range
|
||||
| Self::MemoryView
|
||||
| Self::Property => KnownModule::Builtins,
|
||||
Self::VersionInfo => KnownModule::Sys,
|
||||
Self::GenericAlias
|
||||
@@ -2920,7 +2915,6 @@ impl<'db> KnownClass {
|
||||
| Self::Type
|
||||
| Self::Slice
|
||||
| Self::Range
|
||||
| Self::MemoryView
|
||||
| Self::Property
|
||||
| Self::GenericAlias
|
||||
| Self::ModuleType
|
||||
@@ -2962,7 +2956,6 @@ impl<'db> KnownClass {
|
||||
"list" => Self::List,
|
||||
"slice" => Self::Slice,
|
||||
"range" => Self::Range,
|
||||
"memoryview" => Self::MemoryView,
|
||||
"BaseException" => Self::BaseException,
|
||||
"BaseExceptionGroup" => Self::BaseExceptionGroup,
|
||||
"GenericAlias" => Self::GenericAlias,
|
||||
@@ -3015,7 +3008,6 @@ impl<'db> KnownClass {
|
||||
| Self::Dict
|
||||
| Self::Slice
|
||||
| Self::Range
|
||||
| Self::MemoryView
|
||||
| Self::Property
|
||||
| Self::GenericAlias
|
||||
| Self::ChainMap
|
||||
|
||||
Reference in New Issue
Block a user