1
0
forked from VimPlug/jedi

A new approach of getting arguments

This commit is contained in:
Dave Halter
2019-07-28 17:31:17 +02:00
parent 6a480780f8
commit b4f2d82867
4 changed files with 125 additions and 77 deletions
+9
View File
@@ -187,6 +187,15 @@ class ParamNameInterface(_ParamMixin):
# clear what values would be allowed.
return None
@property
def star_count(self):
kind = self.get_kind()
if kind == Parameter.VAR_POSITIONAL:
return 1
if kind == Parameter.VAR_KEYWORD:
return 2
return 0
class BaseTreeParamName(ParamNameInterface, AbstractTreeName):
annotation_node = None