@@ -72,7 +72,7 @@ def __init__(self, namespace: Mapping[str, Any] | None = None) -> None:
7272 self ._curr_sys_path : list [str ] = sys .path [:]
7373 self ._stdlib_path = os .path .dirname (importlib .__path__ [0 ])
7474
75- def get_completions (self , line : str ) -> tuple [list [str ], list [object ], CompletionAction | None ] | None :
75+ def get_completions (self , line : str ) -> tuple [list [str ], list [Any ], CompletionAction | None ] | None :
7676 """Return the next possible import completions for 'line'.
7777
7878 For attributes completion, if the module to complete from is not
@@ -89,7 +89,7 @@ def get_completions(self, line: str) -> tuple[list[str], list[object], Completio
8989 # no completions are available
9090 return [], [], None
9191
92- def complete (self , from_name : str | None , name : str | None ) -> tuple [list [str ], list [object ], CompletionAction | None ]:
92+ def complete (self , from_name : str | None , name : str | None ) -> tuple [list [str ], list [Any ], CompletionAction | None ]:
9393 if from_name is None :
9494 # import x.y.z<tab>
9595 assert name is not None
@@ -180,7 +180,7 @@ def _is_stdlib_module(self, module_info: pkgutil.ModuleInfo) -> bool:
180180 return (isinstance (module_info .module_finder , FileFinder )
181181 and module_info .module_finder .path == self ._stdlib_path )
182182
183- def find_attributes (self , path : str , prefix : str ) -> tuple [list [str ], list [object ], CompletionAction | None ]:
183+ def find_attributes (self , path : str , prefix : str ) -> tuple [list [str ], list [Any ], CompletionAction | None ]:
184184 """Find all attributes of module 'path' that start with 'prefix'."""
185185 attributes , values , action = self ._find_attributes (path , prefix )
186186 # Filter out invalid attribute names
@@ -193,7 +193,7 @@ def find_attributes(self, path: str, prefix: str) -> tuple[list[str], list[objec
193193 filtered_values .append (val )
194194 return filtered_names , filtered_values , action
195195
196- def _find_attributes (self , path : str , prefix : str ) -> tuple [list [str ], list [object ], CompletionAction | None ]:
196+ def _find_attributes (self , path : str , prefix : str ) -> tuple [list [str ], list [Any ], CompletionAction | None ]:
197197 path = self ._resolve_relative_path (path ) # type: ignore[assignment]
198198 if path is None :
199199 return [], [], None
0 commit comments