Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed Apr 2, 2024
1 parent eea8502 commit 93d8802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions dlt/common/storages/configuration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
from typing import Any, Callable, ClassVar, Dict, Literal, Optional, Type, get_args, Union
from typing import Any, ClassVar, Dict, Literal, Optional, Type, get_args, Union
from urllib.parse import urlparse
from typing_extensions import TypeAlias

from dlt.common.configuration import configspec, resolve_type
from dlt.common.configuration.exceptions import ConfigurationValueError
Expand All @@ -16,10 +15,8 @@
)

from dlt.common.typing import DictStrAny
from dlt.common.schema import Schema
from dlt.common.utils import digest128

from pendulum.datetime import DateTime

TSchemaFileFormat = Literal["json", "yaml"]
SchemaFileExtensions = get_args(TSchemaFileFormat)
Expand Down
4 changes: 2 additions & 2 deletions dlt/destinations/impl/filesystem/configuration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dataclasses

from typing import Any, Callable, Dict, Final, Type, Optional, TypeAlias, Union
from typing import Callable, Dict, Final, Type, Optional, TypeAlias, Union


from pendulum.datetime import DateTime
Expand Down Expand Up @@ -45,7 +45,7 @@ def resolve_credentials_type(self) -> Type[CredentialsConfiguration]:
) # type: ignore[return-value]

def on_resolved(self) -> None:
# If current_datetime is a callable
# If current_datetime is a callableg
# then we need to inspect it's return type
# if return type is not DateTime
# then call it and check it's instance
Expand Down

0 comments on commit 93d8802

Please sign in to comment.