We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d3af4f + 83f6111 commit 4d4ccafCopy full SHA for 4d4ccaf
1 file changed
runtime/nutterfixture.py
@@ -12,9 +12,9 @@
12
13
def tag(the_tag):
14
def tag_decorator(function):
15
- if isinstance(the_tag, list) == False and isinstance(the_tag, str) == False:
+ if not isinstance(the_tag, list) and not isinstance(the_tag, str):
16
raise ValueError("the_tag must be a string or a list")
17
- if str.startswith(function.__name__, "run_") == False:
+ if not str.startswith(function.__name__, "run_"):
18
raise ValueError("a tag may only decorate a run_ method")
19
20
function.tag = the_tag
0 commit comments