Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Lindell committed Jan 2, 2024
1 parent ccfbbed commit d17b87d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions target_bigquery/avro.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def column_type_avro( # noqa: C901
) -> dict:
result: dict[str, Union[str, dict, list]] = {"name": name}
result_type: Union[str, dict[str, Union[Any, str]]] = ""

global schema_collision_counter
try:
if "anyOf" in schema_property and len(schema_property["anyOf"]) > 0:
Expand All @@ -127,7 +127,6 @@ def column_type_avro( # noqa: C901

property_format = schema_property.get("format", None)


if "array" in property_type:
try:
items_type = column_type_avro(
Expand Down
6 changes: 2 additions & 4 deletions target_bigquery/tests/test_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
from ..target import TargetBigQuery
from . import test_utils

MINIMAL_CONFIG = {
"project_id": "projid",
"dataset": "dataid"
}
MINIMAL_CONFIG = {"project_id": "projid", "dataset": "dataid"}


@patch("target_bigquery.bq.Client", autospec=True)
def test_loads_nested_record(mock_client):
Expand Down

0 comments on commit d17b87d

Please sign in to comment.