File: iterable.py

package info (click to toggle)
python-jedi 0.19.1%2Bds1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,680 kB
  • sloc: python: 28,783; makefile: 172; ansic: 13
file content (21 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

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