mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
array indexing works now also with variables
This commit is contained in:
@@ -99,3 +99,12 @@ def iter(collection, sentinel=None):
|
||||
yield collection()
|
||||
else:
|
||||
yield next(collection)
|
||||
|
||||
# basic types
|
||||
class int():
|
||||
def __init__(self, x, base=None):
|
||||
self.x = x
|
||||
|
||||
class str():
|
||||
def __init__(self, obj):
|
||||
self.obj = obj
|
||||
|
||||
Reference in New Issue
Block a user