mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-03 08:52:42 +08:00
Remove another usage of is_class where it's not needed
This commit is contained in:
@@ -271,8 +271,6 @@ class CompiledInstanceName(compiled.CompiledName):
|
||||
is_function = result_context.api_type == 'function'
|
||||
if result_context.tree_node is not None and is_function:
|
||||
parent_context = result_context.parent_context
|
||||
while parent_context.is_class():
|
||||
parent_context = parent_context.parent_context
|
||||
|
||||
yield BoundMethod(
|
||||
result_context.evaluator, self._instance, self.parent_context,
|
||||
|
||||
Reference in New Issue
Block a user