Skip to content

Commit cfd3fd7

Browse files
committed
refs #278 fix ruff error
Ignore another SIM102 error. This one would be much messier to combine the if statements. Looks like the .ruffignore is not working either!
1 parent f66000c commit cfd3fd7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.ruffignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/tests
1+
tests/

pysimplesql/pysimplesql.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -3918,9 +3918,10 @@ def __init__(self, title: str, config: dict = None):
39183918
if not all(isinstance(v, str) for v in config["phrases"]):
39193919
raise ValueError("phrases must be a list of strings")
39203920

3921-
if "phrase_delay" in config:
3922-
if not all(isinstance(v, (int, float)) for v in config["phrase_delay"]): # noqa SIM102
3923-
raise ValueError("phrase_delay must be numeric")
3921+
if "phrase_delay" in config and not all(
3922+
isinstance(v, (int, float)) for v in config["phrase_delay"]
3923+
): # noqa SIM102
3924+
raise ValueError("phrase_delay must be numeric")
39243925

39253926
self.config = {**default_config, **config}
39263927

0 commit comments

Comments
 (0)