Skip to content

Commit

Permalink
chore: ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilland committed Jan 17, 2025
1 parent b89fdb6 commit 3eba6ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/chaining_type_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def main() -> int:
wrapper = ast.parse(wrapper).body[0]
assert isinstance(wrapper, ast.Expr), "`wrapper` value should contain one expression"
wrapper = wrapper.value
assert isinstance(
wrapper, ast.Subscript
), "`wrapper` value should contain one with one subscript"
assert isinstance(wrapper, ast.Subscript), (
"`wrapper` value should contain one with one subscript"
)

to_file = open(args.output, "w")
to_file.write(build_header(args.class_name))
Expand Down
4 changes: 2 additions & 2 deletions src/pydash/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def cond(pairs, *extra_pairs):
pass

if not is_valid:
raise ValueError("Each predicate-function pair should contain " "exactly two elements")
raise ValueError("Each predicate-function pair should contain exactly two elements")

if not all(map(callable, pair)):
raise TypeError("Both predicate-function pair should be callable")
Expand Down Expand Up @@ -1179,7 +1179,7 @@ def retry(
and (len(jitter) != 2 or not all(isinstance(jit, NUMBER_TYPES) for jit in jitter))
)
):
raise ValueError("jitter must be a number greater than 0 or a 2-item tuple of " "numbers")
raise ValueError("jitter must be a number greater than 0 or a 2-item tuple of numbers")

if not isinstance(exceptions, tuple) or not all(
issubclass(exc, Exception) for exc in exceptions
Expand Down
2 changes: 1 addition & 1 deletion tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def test_count_substr(case, expected):
"\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
"\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef"
"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
"AAAAAAAeCEEEEIIII" "DNOOOOO OUUUUYThss" "aaaaaaaeceeeeiiii" "dnooooo ouuuuythy",
"AAAAAAAeCEEEEIIIIDNOOOOO OUUUUYThssaaaaaaaeceeeeiiiidnooooo ouuuuythy",
),
("abcABC", "abcABC"),
("", ""),
Expand Down

0 comments on commit 3eba6ce

Please sign in to comment.