mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-22 21:31:26 +08:00
Make it clearer when get_param is used.
This commit is contained in:
@@ -167,6 +167,12 @@ class ParamNameInterface(object):
|
||||
def to_string(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def get_param(self):
|
||||
# TODO document better where this is used and when. Currently it has
|
||||
# very limited use, but is still in use. It's currently not even
|
||||
# clear what values would be allowed.
|
||||
return None
|
||||
|
||||
|
||||
class BaseTreeParamName(ParamNameInterface, AbstractTreeName):
|
||||
annotation_node = None
|
||||
|
||||
@@ -571,7 +571,6 @@ class DataclassParamName(BaseTreeParamName):
|
||||
|
||||
def get_kind(self):
|
||||
return Parameter.POSITIONAL_OR_KEYWORD
|
||||
#TODO get_param?
|
||||
|
||||
def infer(self):
|
||||
if self.annotation_node is None:
|
||||
|
||||
Reference in New Issue
Block a user