Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 15, 2024
1 parent 2d39177 commit f51aae8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion singer_sdk/helpers/_flattening.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ def flatten_record(
A flattened version of the record.
"""
if (flattened_schema is not None) or (max_level is not None):
raise InvalidFlatteningRecordsParameter("flattened_schema or max_level must be provided")
raise InvalidFlatteningRecordsParameter(
"flattened_schema or max_level must be provided"
)
max_level = max_level or 0

return _flatten_record(
Expand Down
6 changes: 5 additions & 1 deletion tests/core/test_flattening.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
id="flattened schema not provided",
),
pytest.param(
None, None, None, InvalidFlatteningRecordsParameter, id="no schema or max level provided"
None,
None,
None,
InvalidFlatteningRecordsParameter,
id="no schema or max level provided",
),
],
)
Expand Down

0 comments on commit f51aae8

Please sign in to comment.