mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
again tokenize simplifications
This commit is contained in:
@@ -107,10 +107,6 @@ def group(*choices):
|
||||
return '(' + '|'.join(choices) + ')'
|
||||
|
||||
|
||||
def any(*choices):
|
||||
return group(*choices) + '*'
|
||||
|
||||
|
||||
def maybe(*choices):
|
||||
return group(*choices) + '?'
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ class _StrangeSlice():
|
||||
def __getitem__(self, slice):
|
||||
return slice
|
||||
|
||||
# Should not result in an error, just because the slice itself is returned.
|
||||
#? []
|
||||
_StrangeSlice()[1:2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user