Skip to content

Commit 4d42f03

Browse files
authored
Make TypeQuery and TypeTranslator not traits (#9249)
This makes them usable by non-compiled plugins. This fixes the user-blocking issue in #9001.
1 parent 5d2983d commit 4d42f03

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mypy/type_visitor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def visit_placeholder_type(self, t: PlaceholderType) -> T:
134134
pass
135135

136136

137-
@trait
138137
class TypeTranslator(TypeVisitor[Type]):
139138
"""Identity type transformation.
140139
@@ -242,7 +241,6 @@ def visit_type_alias_type(self, t: TypeAliasType) -> Type:
242241
pass
243242

244243

245-
@trait
246244
class TypeQuery(SyntheticTypeVisitor[T]):
247245
"""Visitor for performing queries of types.
248246

0 commit comments

Comments
 (0)