Skip to content

Commit 5074313

Browse files
committed
better static
1 parent d22f267 commit 5074313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/_static_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ def defines_function(name: str) -> bool:
1111
return check
1212

1313
def not_in_code(construct: type):
14-
check = construct in static.AbstractSyntaxTree()
14+
check = construct not in static.AbstractSyntaxTree()
1515
name = str(construct).split(".")[1].split("'")[0].lower()
16-
if check:
16+
if not check:
1717
raise AssertionError(f"`{name}` mag niet gebruikt worden in deze opdracht")
1818
return check
1919

0 commit comments

Comments
 (0)