Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash committed Apr 3, 2024
1 parent 868121c commit b093c50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dlt/common/configuration/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ def _wrap(*args: Any, **kwargs: Any) -> Any:
_FUNC_SPECS[id(_wrap)] = SPEC

# add a method to create a pre-resolved partial
setattr(
setattr( # noqa: B010
_wrap, "__RESOLVED_PARTIAL_FUNC__", with_partially_resolved_config
) # noqa: B010
)

return _wrap # type: ignore

Expand Down
7 changes: 3 additions & 4 deletions tests/load/test_dummy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,10 @@ def test_extend_table_chain() -> None:
_extend_tables_with_table_chain(schema, ["event_bot"], ["event_user"]) == set()
)
# skip unseen tables
del schema.tables[

del schema.tables[ # type:ignore[typeddict-item]
"event_user__parse_data__entities"
][ # type:ignore[typeddict-item]
"x-normalizer"
]
]["x-normalizer"]
entities_chain = {
name
for name in schema.data_table_names()
Expand Down
4 changes: 2 additions & 2 deletions tests/pipeline/cases/github_pipeline/github_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def github():
merge_key=("node_id", "url"),
)
def load_issues(
created_at=dlt.sources.incremental[pendulum.DateTime](
created_at=dlt.sources.incremental[pendulum.DateTime]( # noqa: B008
"created_at"
), # noqa: B008
),
):
# we should be in TEST_STORAGE folder
with open(
Expand Down

0 comments on commit b093c50

Please sign in to comment.