@@ -170,12 +170,12 @@ def fail(self, msg: str, ctx: Context, *, code: ErrorCode | None = None) -> None
170170 raise NotImplementedError
171171
172172 @abstractmethod
173- def named_type (self , name : str , args : list [Type ]) -> Instance :
173+ def named_type (self , fullname : str , args : list [Type ], / ) -> Instance :
174174 """Construct an instance of a builtin type with given name."""
175175 raise NotImplementedError
176176
177177 @abstractmethod
178- def analyze_type (self , typ : Type ) -> Type :
178+ def analyze_type (self , typ : Type , / ) -> Type :
179179 """Analyze an unbound type using the default mypy logic."""
180180 raise NotImplementedError
181181
@@ -319,7 +319,8 @@ def fail(
319319 @abstractmethod
320320 def anal_type (
321321 self ,
322- t : Type ,
322+ typ : Type ,
323+ / ,
323324 * ,
324325 tvar_scope : TypeVarLikeScope | None = None ,
325326 allow_tuple_literal : bool = False ,
@@ -340,15 +341,15 @@ def class_type(self, self_type: Type) -> Type:
340341 raise NotImplementedError
341342
342343 @abstractmethod
343- def lookup_fully_qualified (self , name : str ) -> SymbolTableNode :
344+ def lookup_fully_qualified (self , fullname : str , / ) -> SymbolTableNode :
344345 """Lookup a symbol by its fully qualified name.
345346
346347 Raise an error if not found.
347348 """
348349 raise NotImplementedError
349350
350351 @abstractmethod
351- def lookup_fully_qualified_or_none (self , name : str ) -> SymbolTableNode | None :
352+ def lookup_fully_qualified_or_none (self , fullname : str , / ) -> SymbolTableNode | None :
352353 """Lookup a symbol by its fully qualified name.
353354
354355 Return None if not found.
@@ -384,12 +385,12 @@ def add_plugin_dependency(self, trigger: str, target: str | None = None) -> None
384385 raise NotImplementedError
385386
386387 @abstractmethod
387- def add_symbol_table_node (self , name : str , stnode : SymbolTableNode ) -> Any :
388+ def add_symbol_table_node (self , name : str , symbol : SymbolTableNode ) -> Any :
388389 """Add node to global symbol table (or to nearest class if there is one)."""
389390 raise NotImplementedError
390391
391392 @abstractmethod
392- def qualified_name (self , n : str ) -> str :
393+ def qualified_name (self , name : str ) -> str :
393394 """Make qualified name using current module and enclosing class (if any)."""
394395 raise NotImplementedError
395396
0 commit comments