mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
dynamic params works now on all internal classes
This commit is contained in:
@@ -732,7 +732,7 @@ class Param(Statement):
|
||||
|
||||
# this is defined by the parser later on, not at the initialization
|
||||
# it is the position in the call (first argument, second...)
|
||||
self.position = None
|
||||
self.position_nr = None
|
||||
self.is_generated = False
|
||||
|
||||
def get_name(self):
|
||||
@@ -1091,7 +1091,7 @@ class PyFuzzyParser(object):
|
||||
stmt, tok = self._parse_statement(added_breaks=',',
|
||||
stmt_class=Param)
|
||||
if stmt:
|
||||
stmt.position = pos
|
||||
stmt.position_nr = pos
|
||||
names.append(stmt)
|
||||
pos += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user