mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Make infer public on classes
This commit is contained in:
@@ -29,7 +29,7 @@ def test_in_empty_space(Script):
|
||||
comps = Script(code, 3, 7).completions()
|
||||
self, = [c for c in comps if c.name == 'self']
|
||||
assert self.name == 'self'
|
||||
def_, = self._goto_definitions()
|
||||
def_, = self.infer()
|
||||
assert def_.name == 'X'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user