Skip to content

Commit 0406193

Browse files
author
Ivan Levkivskyi
committed
Another self-compilation fix
1 parent 81d2f09 commit 0406193

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypy/checker_shared.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,16 @@ def infer_literal_expr_type(self, value: LiteralValue, fallback_name: str) -> Ty
135135

136136
@trait
137137
class TypeCheckerSharedApi(CheckerPluginInterface):
138-
expr_checker: ExpressionCheckerSharedApi
139138
plugin: Plugin
140139
module_refs: set[str]
141140
scope: CheckerScope
142141
checking_missing_await: bool
143142

143+
@property
144+
@abstractmethod
145+
def expr_checker(self) -> ExpressionCheckerSharedApi:
146+
raise NotImplementedError
147+
144148
@abstractmethod
145149
def named_type(self, name: str) -> Instance:
146150
raise NotImplementedError

0 commit comments

Comments
 (0)