Skip to content

Commit a9777fe

Browse files
[STYLE] Refactored to avoid PYL-C0201 (- WIP #233 -)
Changes in file tests/__init__.py: * avoid conditional with check of `keys()` to correct PYL-C0201
1 parent f068db2 commit a9777fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def emit(self, record):
102102
# Validate the log level
103103
if not isinstance(loglevel, str):
104104
raise ValueError("Invalid log level")
105-
if loglevel not in logging_color.keys():
105+
if loglevel not in logging_color:
106106
raise ValueError("Invalid log level")
107107
# Determine color based on whether the output is a terminal
108108
if sys.stdout.isatty():

0 commit comments

Comments
 (0)