-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nit: Remove py.typed file that makes Pyright incessant (#732)
* Add __all__ to __init__ modules * Re-add py.typed --------- Co-authored-by: Steinthor Palsson <[email protected]>
- Loading branch information
Showing
26 changed files
with
260 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
from dlt.common.arithmetics import Decimal # noqa: F401 | ||
from dlt.common.arithmetics import Decimal | ||
from dlt.common.wei import Wei | ||
from dlt.common.pendulum import pendulum # noqa: F401 | ||
from dlt.common.json import json # noqa: F401, I251 | ||
from dlt.common.runtime.signals import sleep # noqa: F401 | ||
from dlt.common.runtime import logger # noqa: F401 | ||
from dlt.common.pendulum import pendulum | ||
from dlt.common.json import json | ||
from dlt.common.runtime.signals import sleep | ||
from dlt.common.runtime import logger | ||
|
||
__all__ = ["Decimal", "Wei", "pendulum", "json", "sleep", "logger"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
from .specs.base_configuration import configspec, is_valid_hint, is_secret_hint, resolve_type # noqa: F401 | ||
from .specs import known_sections # noqa: F401 | ||
from .resolve import resolve_configuration, inject_section # noqa: F401 | ||
from .inject import with_config, last_config, get_fun_spec # noqa: F401 | ||
from .specs.base_configuration import configspec, is_valid_hint, is_secret_hint, resolve_type | ||
from .specs import known_sections | ||
from .resolve import resolve_configuration, inject_section | ||
from .inject import with_config, last_config, get_fun_spec | ||
|
||
from .exceptions import ( # noqa: F401 | ||
from .exceptions import ( | ||
ConfigFieldMissingException, | ||
ConfigValueCannotBeCoercedException, | ||
ConfigFileNotFoundException, | ||
ConfigurationValueError | ||
) | ||
|
||
|
||
__all__ = [ | ||
"configspec", | ||
"is_valid_hint", | ||
"is_secret_hint", | ||
"resolve_type", | ||
"known_sections", | ||
"resolve_configuration", | ||
"inject_section", | ||
"with_config", | ||
"last_config", | ||
"get_fun_spec", | ||
"ConfigFieldMissingException", | ||
"ConfigValueCannotBeCoercedException", | ||
"ConfigFileNotFoundException", | ||
"ConfigurationValueError", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
from .run_configuration import RunConfiguration # noqa: F401 | ||
from .base_configuration import BaseConfiguration, CredentialsConfiguration, CredentialsWithDefault, ContainerInjectableContext, extract_inner_hint, is_base_configuration_inner_hint, configspec # noqa: F401 | ||
from .config_section_context import ConfigSectionContext # noqa: F401 | ||
from .run_configuration import RunConfiguration | ||
from .base_configuration import BaseConfiguration, CredentialsConfiguration, CredentialsWithDefault, ContainerInjectableContext, extract_inner_hint, is_base_configuration_inner_hint, configspec | ||
from .config_section_context import ConfigSectionContext | ||
|
||
from .gcp_credentials import GcpServiceAccountCredentialsWithoutDefaults, GcpServiceAccountCredentials, GcpOAuthCredentialsWithoutDefaults, GcpOAuthCredentials, GcpCredentials # noqa: F401 | ||
from .connection_string_credentials import ConnectionStringCredentials # noqa: F401 | ||
from .api_credentials import OAuth2Credentials # noqa: F401 | ||
from .aws_credentials import AwsCredentials, AwsCredentialsWithoutDefaults # noqa: F401 | ||
from .azure_credentials import AzureCredentials, AzureCredentialsWithoutDefaults # noqa: F401 | ||
from .gcp_credentials import GcpServiceAccountCredentialsWithoutDefaults, GcpServiceAccountCredentials, GcpOAuthCredentialsWithoutDefaults, GcpOAuthCredentials, GcpCredentials | ||
from .connection_string_credentials import ConnectionStringCredentials | ||
from .api_credentials import OAuth2Credentials | ||
from .aws_credentials import AwsCredentials, AwsCredentialsWithoutDefaults | ||
from .azure_credentials import AzureCredentials, AzureCredentialsWithoutDefaults | ||
|
||
|
||
# backward compatibility for service account credentials | ||
from .gcp_credentials import GcpServiceAccountCredentialsWithoutDefaults as GcpClientCredentials, GcpServiceAccountCredentials as GcpClientCredentialsWithDefault # noqa: F401 | ||
from .gcp_credentials import GcpServiceAccountCredentialsWithoutDefaults as GcpClientCredentials, GcpServiceAccountCredentials as GcpClientCredentialsWithDefault | ||
|
||
|
||
__all__ = [ | ||
"RunConfiguration", | ||
"BaseConfiguration", "CredentialsConfiguration", "CredentialsWithDefault", "ContainerInjectableContext", "extract_inner_hint", "is_base_configuration_inner_hint", "configspec", | ||
"ConfigSectionContext", | ||
"GcpServiceAccountCredentialsWithoutDefaults", "GcpServiceAccountCredentials", "GcpOAuthCredentialsWithoutDefaults", "GcpOAuthCredentials", "GcpCredentials", | ||
"ConnectionStringCredentials", | ||
"OAuth2Credentials", | ||
"AwsCredentials", "AwsCredentialsWithoutDefaults", | ||
"AzureCredentials", "AzureCredentialsWithoutDefaults", | ||
"GcpClientCredentials", "GcpClientCredentialsWithDefault", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
from dlt.common.data_types.type_helpers import coerce_value, py_type_to_sc_type | ||
from dlt.common.data_types.typing import TDataType, DATA_TYPES | ||
from dlt.common.data_types.typing import TDataType, DATA_TYPES | ||
|
||
__all__ = [ | ||
"coerce_value", "py_type_to_sc_type", "TDataType", "DATA_TYPES" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
from dlt.common.data_writers.writers import DataWriter, TLoaderFileFormat | ||
from dlt.common.data_writers.buffered import BufferedDataWriter | ||
from dlt.common.data_writers.escape import escape_redshift_literal, escape_redshift_identifier, escape_bigquery_identifier | ||
from dlt.common.data_writers.escape import escape_redshift_literal, escape_redshift_identifier, escape_bigquery_identifier | ||
|
||
__all__ = [ | ||
"DataWriter", "TLoaderFileFormat", "BufferedDataWriter", | ||
"escape_redshift_literal", "escape_redshift_identifier", "escape_bigquery_identifier" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
from dlt.common.destination.capabilities import DestinationCapabilitiesContext, TLoaderFileFormat, ALL_SUPPORTED_FILE_FORMATS | ||
from dlt.common.destination.reference import DestinationReference, TDestinationReferenceArg | ||
|
||
__all__ = [ | ||
"DestinationCapabilitiesContext", | ||
"TLoaderFileFormat", | ||
"ALL_SUPPORTED_FILE_FORMATS", | ||
"DestinationReference", | ||
"TDestinationReferenceArg", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
from dlt.common.normalizers.configuration import NormalizersConfiguration | ||
from dlt.common.normalizers.typing import TJSONNormalizer, TNormalizersConfig | ||
from dlt.common.normalizers.utils import explicit_normalizers, import_normalizers | ||
from dlt.common.normalizers.utils import explicit_normalizers, import_normalizers | ||
|
||
__all__ = [ | ||
"NormalizersConfiguration", | ||
"TJSONNormalizer", "TNormalizersConfig", | ||
"explicit_normalizers", "import_normalizers" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
from .naming import SupportsNamingConvention, NamingConvention | ||
|
||
__all__ = [ | ||
'SupportsNamingConvention', "NamingConvention" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
from . import pool_runner | ||
from .pool_runner import run_pool, NullExecutor | ||
from .runnable import Runnable, workermethod, TExecutor | ||
from .typing import TRunMetrics | ||
from .venv import Venv, VenvNotFound | ||
|
||
|
||
__all__ = [ | ||
"run_pool", "NullExecutor", | ||
"Runnable", "workermethod", "TExecutor", | ||
"TRunMetrics", | ||
"Venv", "VenvNotFound" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .init import initialize_runtime | ||
from .init import initialize_runtime | ||
|
||
__all__ = ["initialize_runtime"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
from dlt.common.schema.typing import TSchemaUpdate, TSchemaTables, TTableSchema, TStoredSchema, TTableSchemaColumns, TColumnHint, TColumnSchema, TColumnSchemaBase # noqa: F401 | ||
from dlt.common.schema.typing import COLUMN_HINTS # noqa: F401 | ||
from dlt.common.schema.schema import Schema # noqa: F401 | ||
from dlt.common.schema.utils import verify_schema_hash # noqa: F401 | ||
from dlt.common.schema.typing import TSchemaUpdate, TSchemaTables, TTableSchema, TStoredSchema, TTableSchemaColumns, TColumnHint, TColumnSchema, TColumnSchemaBase | ||
from dlt.common.schema.typing import COLUMN_HINTS | ||
from dlt.common.schema.schema import Schema | ||
from dlt.common.schema.utils import verify_schema_hash | ||
|
||
__all__ = [ | ||
"TSchemaUpdate", "TSchemaTables", "TTableSchema", "TStoredSchema", "TTableSchemaColumns", "TColumnHint", | ||
"TColumnSchema", "TColumnSchemaBase", "COLUMN_HINTS", "Schema", "verify_schema_hash" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
from .file_storage import FileStorage # noqa: F401 | ||
from .versioned_storage import VersionedStorage # noqa: F401 | ||
from .schema_storage import SchemaStorage # noqa: F401 | ||
from .live_schema_storage import LiveSchemaStorage # noqa: F401 | ||
from .normalize_storage import NormalizeStorage # noqa: F401 | ||
from .load_storage import LoadStorage # noqa: F401 | ||
from .data_item_storage import DataItemStorage # noqa: F401 | ||
from .configuration import LoadStorageConfiguration, NormalizeStorageConfiguration, SchemaStorageConfiguration, TSchemaFileFormat, FilesystemConfiguration # noqa: F401 | ||
from .fsspec_filesystem import fsspec_from_config, fsspec_filesystem # noqa: F401 | ||
from .file_storage import FileStorage | ||
from .versioned_storage import VersionedStorage | ||
from .schema_storage import SchemaStorage | ||
from .live_schema_storage import LiveSchemaStorage | ||
from .normalize_storage import NormalizeStorage | ||
from .load_storage import LoadStorage | ||
from .data_item_storage import DataItemStorage | ||
from .configuration import LoadStorageConfiguration, NormalizeStorageConfiguration, SchemaStorageConfiguration, TSchemaFileFormat, FilesystemConfiguration | ||
from .fsspec_filesystem import fsspec_from_config, fsspec_filesystem | ||
|
||
|
||
__all__ = [ | ||
"FileStorage", | ||
"VersionedStorage", | ||
"SchemaStorage", | ||
"LiveSchemaStorage", | ||
"NormalizeStorage", | ||
"LoadStorage", | ||
"DataItemStorage", | ||
"LoadStorageConfiguration", "NormalizeStorageConfiguration", "SchemaStorageConfiguration", "TSchemaFileFormat", "FilesystemConfiguration", | ||
"fsspec_from_config", "fsspec_filesystem", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from dlt.load.load import Load | ||
|
||
__all__ = ["Load"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .normalize import Normalize | ||
from .normalize import Normalize | ||
|
||
__all__ = ['Normalize'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.