mirror of
https://github.com/github/codeql.git
synced 2026-01-28 13:53:10 +01:00
37 lines
501 B
Python
37 lines
501 B
Python
|
|
f1 = 1.0
|
|
dict
|
|
tuple
|
|
i1 = 0
|
|
s = ()
|
|
|
|
def func():
|
|
pass
|
|
|
|
class C(object):
|
|
pass
|
|
|
|
def vararg_kwarg(*t, **d):
|
|
t
|
|
d
|
|
|
|
def multi_loop(seq):
|
|
x = None
|
|
for x, y in seq:
|
|
x
|
|
|
|
def with_definition(x):
|
|
with x as y:
|
|
y
|
|
|
|
def multi_loop_in_try(x):
|
|
try: # This causes additional exception edges, such that:
|
|
for p, q in x: # `x` and `p` are not in the same BB.
|
|
p
|
|
except KeyError:
|
|
pass
|
|
|
|
def f(*args, **kwargs):
|
|
not args[0]
|
|
not kwargs["x"]
|