Fix type var completions so that there's at least no error
This commit is contained in:
1 parent
80ab4d8ff5
commit
ac6b7ff14e
2 files changed
+7
-2
No files matched your search
@@ -322,7 +322,7 @@ class Protocol(_ContainerBase):
|
||||
|
||||
class Any(_BaseTypingContext):
|
||||
def execute_annotation(self):
|
||||
debug.warning('Used Any, which is not implemented, yet.')
|
||||
debug.warning('Used Any - returned no results')
|
||||
return NO_CONTEXTS
|
||||
|
||||
|
||||
@@ -390,6 +390,9 @@ class TypeVar(Context):
|
||||
else:
|
||||
debug.warning('Invalid TypeVar param name %s', key)
|
||||
|
||||
def get_filters(self, *args, **kwargs):
|
||||
return iter([])
|
||||
|
||||
def execute_annotation(self):
|
||||
if self._bound_lazy_context is not None:
|
||||
return self._bound_lazy_context.infer().execute_annotation()
|
||||
|
||||
Reference in new issue
Block a user