mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Very small refactoring
This commit is contained in:
@@ -418,9 +418,7 @@ class TypeVar(_BaseTypingContext):
|
|||||||
if self._bound_lazy_context is not None:
|
if self._bound_lazy_context is not None:
|
||||||
return self._bound_lazy_context.infer()
|
return self._bound_lazy_context.infer()
|
||||||
if self._constraints_lazy_contexts:
|
if self._constraints_lazy_contexts:
|
||||||
return ContextSet.from_sets(
|
return self.constraints
|
||||||
l.infer() for l in self._constraints_lazy_contexts
|
|
||||||
)
|
|
||||||
debug.warning('Tried to infer the TypeVar %s without a given type', self._var_name)
|
debug.warning('Tried to infer the TypeVar %s without a given type', self._var_name)
|
||||||
return NO_CONTEXTS
|
return NO_CONTEXTS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user