forked from VimPlug/jedi
removed pr.String and pr.Number in favor of the more general pr.Literal
This commit is contained in:
@@ -1069,9 +1069,7 @@ class Statement(Simple):
|
||||
|
||||
is_literal = token_type in [tokenize.STRING, tokenize.NUMBER]
|
||||
if isinstance(tok, Name) or is_literal:
|
||||
cls = Call
|
||||
if is_literal:
|
||||
cls = String if token_type == tokenize.STRING else Number
|
||||
cls = Literal if is_literal else Call
|
||||
|
||||
call = cls(self._sub_module, tok, start_pos, end_pos, self)
|
||||
if is_chain:
|
||||
@@ -1243,14 +1241,6 @@ class Literal(StatementElement):
|
||||
return "<%s: %s>" % (type(self).__name__, s)
|
||||
|
||||
|
||||
class String(Literal):
|
||||
pass
|
||||
|
||||
|
||||
class Number(Literal):
|
||||
pass
|
||||
|
||||
|
||||
class Array(StatementElement):
|
||||
"""
|
||||
Describes the different python types for an array, but also empty
|
||||
|
||||
Reference in New Issue
Block a user