1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 07:50:04 +08:00
SpaceVim/bundle/jedi-vim/pythonx/jedi/test/static_analysis/iterable.py
2022-10-23 15:41:52 +08:00

22 lines
366 B
Python

a, b = {'asdf': 3, 'b': 'str'}
a
x = [1]
x[0], b = {'a': 1, 'b': '2'}
dct = {3: ''}
for x in dct:
pass
#! 4 type-error-not-iterable
for x, y in dct:
pass
# Shouldn't cause issues, because if there are no types (or we don't know what
# the types are, we should just ignore it.
#! 0 value-error-too-few-values
a, b = []
#! 7 name-error
a, b = NOT_DEFINED