blob: 1374192dd570c1d987c53e0c866aa9689b9a5fa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#: Okay
def f1(a, /, b):
pass
def f2(a, b, /):
pass
def f3(
a,
/,
b,
):
pass
lambda a, /: None
#: Okay
if x := 1:
print(x)
if m and (token := m.group(1)):
pass
stuff = [[y := f(x), x / y] for x in range(5)]
#: E225:1:5
if x:= 1:
pass
#: E225:1:18
if False or (x :=1):
pass
#: Okay
import typing as t
__all__: t.List[str] = []
import logging
logging.getLogger(__name__)
#: E402
import typing as t
all_the_things: t.List[str] = []
import logging
|