@@ -95,21 +95,21 @@ def ingest(
9595 help = "The URI of the [green]source[/green]" ,
9696 envvar = ["SOURCE_URI" , "OMNILOAD_SOURCE_URI" ],
9797 ),
98- ], # type: ignore
98+ ],
9999 dest_uri : Annotated [
100100 str ,
101101 typer .Option (
102102 help = "The URI of the [cyan]destination[/cyan]" ,
103103 envvar = ["DESTINATION_URI" , "OMNILOAD_DESTINATION_URI" ],
104104 ),
105- ], # type: ignore
105+ ],
106106 source_table : Annotated [
107107 str ,
108108 typer .Option (
109109 help = "The table name in the [green]source[/green] to fetch" ,
110110 envvar = ["SOURCE_TABLE" , "OMNILOAD_SOURCE_TABLE" ],
111111 ),
112- ], # type: ignore
112+ ],
113113 dest_table : Annotated [
114114 str ,
115115 typer .Option (
@@ -123,170 +123,170 @@ def ingest(
123123 help = "The incremental key from the table to be used for incremental strategies" ,
124124 envvar = ["INCREMENTAL_KEY" , "OMNILOAD_INCREMENTAL_KEY" ],
125125 ),
126- ] = None , # type: ignore
126+ ] = None ,
127127 incremental_strategy : Annotated [
128128 IncrementalStrategy ,
129129 typer .Option (
130130 help = "The incremental strategy to use" ,
131131 envvar = ["INCREMENTAL_STRATEGY" , "OMNILOAD_INCREMENTAL_STRATEGY" ],
132132 ),
133- ] = IncrementalStrategy .create_replace , # type: ignore
133+ ] = IncrementalStrategy .create_replace ,
134134 interval_start : Annotated [
135135 Optional [datetime ],
136136 typer .Option (
137137 help = "The start of the interval the incremental key will cover" ,
138138 formats = DATE_FORMATS ,
139139 envvar = ["INTERVAL_START" , "OMNILOAD_INTERVAL_START" ],
140140 ),
141- ] = None , # type: ignore
141+ ] = None ,
142142 interval_end : Annotated [
143143 Optional [datetime ],
144144 typer .Option (
145145 help = "The end of the interval the incremental key will cover" ,
146146 formats = DATE_FORMATS ,
147147 envvar = ["INTERVAL_END" , "OMNILOAD_INTERVAL_END" ],
148148 ),
149- ] = None , # type: ignore
149+ ] = None ,
150150 primary_key : Annotated [
151151 Optional [list [str ]],
152152 typer .Option (
153153 help = "The key that will be used to deduplicate the resulting table" ,
154154 envvar = ["PRIMARY_KEY" , "OMNILOAD_PRIMARY_KEY" ],
155155 ),
156- ] = None , # type: ignore
156+ ] = None ,
157157 partition_by : Annotated [
158158 Optional [str ],
159159 typer .Option (
160160 help = "The partition key to be used for partitioning the destination table" ,
161161 envvar = ["PARTITION_BY" , "OMNILOAD_PARTITION_BY" ],
162162 ),
163- ] = None , # type: ignore
163+ ] = None ,
164164 cluster_by : Annotated [
165165 Optional [str ],
166166 typer .Option (
167167 help = "The clustering key to be used for clustering the destination table, not every destination supports clustering." ,
168168 envvar = ["CLUSTER_BY" , "OMNILOAD_CLUSTER_BY" ],
169169 ),
170- ] = None , # type: ignore
170+ ] = None ,
171171 dry_run : Annotated [
172172 Optional [bool ],
173173 typer .Option (
174174 help = "Display data transfer plan but don't invoke it" ,
175175 envvar = ["DRY_RUN" , "OMNILOAD_DRY_RUN" ],
176176 ),
177- ] = False , # type: ignore
177+ ] = False ,
178178 full_refresh : Annotated [
179179 bool ,
180180 typer .Option (
181181 help = "Ignore the state and refresh the destination table completely" ,
182182 envvar = ["FULL_REFRESH" , "OMNILOAD_FULL_REFRESH" ],
183183 ),
184- ] = False , # type: ignore
184+ ] = False ,
185185 progress : Annotated [
186186 Progress ,
187187 typer .Option (
188188 help = "The progress display type, must be one of 'interactive', 'log'" ,
189189 envvar = ["PROGRESS" , "OMNILOAD_PROGRESS" ],
190190 ),
191- ] = Progress .interactive , # type: ignore
191+ ] = Progress .interactive ,
192192 sql_backend : Annotated [
193193 SqlBackend ,
194194 typer .Option (
195195 help = "The SQL backend to use" ,
196196 envvar = ["SQL_BACKEND" , "OMNILOAD_SQL_BACKEND" ],
197197 ),
198- ] = SqlBackend .default , # type: ignore
198+ ] = SqlBackend .default ,
199199 loader_file_format : Annotated [
200200 Optional [LoaderFileFormat ],
201201 typer .Option (
202202 help = "The file format to use when loading data" ,
203203 envvar = ["LOADER_FILE_FORMAT" , "OMNILOAD_LOADER_FILE_FORMAT" ],
204204 ),
205- ] = None , # type: ignore
205+ ] = None ,
206206 page_size : Annotated [
207207 Optional [int ],
208208 typer .Option (
209209 help = "The page size to be used when fetching data from SQL sources" ,
210210 envvar = ["PAGE_SIZE" , "OMNILOAD_PAGE_SIZE" ],
211211 ),
212- ] = 50000 , # type: ignore
212+ ] = 50000 ,
213213 loader_file_size : Annotated [
214214 Optional [int ],
215215 typer .Option (
216216 help = "The file size to be used by the loader to split the data into multiple files. This can be set independent of the page size, since page size is used for fetching the data from the sources whereas this is used for the processing/loading part." ,
217217 envvar = ["LOADER_FILE_SIZE" , "OMNILOAD_LOADER_FILE_SIZE" ],
218218 ),
219- ] = 100000 , # type: ignore
219+ ] = 100000 ,
220220 schema_naming : Annotated [
221221 SchemaNaming ,
222222 typer .Option (
223223 help = "The naming convention to use when moving the tables from source to destination. The default behavior is explained here: https://dlthub.com/docs/general-usage/schema#naming-convention" ,
224224 envvar = ["SCHEMA_NAMING" , "OMNILOAD_SCHEMA_NAMING" ],
225225 ),
226- ] = SchemaNaming .default , # type: ignore
226+ ] = SchemaNaming .default ,
227227 pipelines_dir : Annotated [
228228 Optional [str ],
229229 typer .Option (
230230 help = "The path to store dlt-related pipeline metadata. By default, omniload will create a temporary directory and delete it after the execution is done in order to make retries stateless." ,
231231 envvar = ["PIPELINES_DIR" , "OMNILOAD_PIPELINES_DIR" ],
232232 ),
233- ] = None , # type: ignore
233+ ] = None ,
234234 extract_parallelism : Annotated [
235235 Optional [int ],
236236 typer .Option (
237237 help = "The number of parallel jobs to run for extracting data from the source, only applicable for certain sources" ,
238238 envvar = ["EXTRACT_PARALLELISM" , "OMNILOAD_EXTRACT_PARALLELISM" ],
239239 ),
240- ] = 5 , # type: ignore
240+ ] = 5 ,
241241 sql_reflection_level : Annotated [
242242 SqlReflectionLevel ,
243243 typer .Option (
244244 help = "The reflection level to use when reflecting the table schema from the source" ,
245245 envvar = ["SQL_REFLECTION_LEVEL" , "OMNILOAD_SQL_REFLECTION_LEVEL" ],
246246 ),
247- ] = SqlReflectionLevel .full , # type: ignore
247+ ] = SqlReflectionLevel .full ,
248248 sql_limit : Annotated [
249249 Optional [int ],
250250 typer .Option (
251251 help = "The limit to use when fetching data from the source" ,
252252 envvar = ["SQL_LIMIT" , "OMNILOAD_SQL_LIMIT" ],
253253 ),
254- ] = None , # type: ignore
254+ ] = None ,
255255 sql_exclude_columns : Annotated [
256256 Optional [list [str ]],
257257 typer .Option (
258258 help = "The columns to exclude from the source table" ,
259259 envvar = ["SQL_EXCLUDE_COLUMNS" , "OMNILOAD_SQL_EXCLUDE_COLUMNS" ],
260260 ),
261- ] = [], # type: ignore
261+ ] = [],
262262 columns : Annotated [
263263 Optional [list [str ]],
264264 typer .Option (
265265 help = "The column types to be used for the destination table in the format of 'column_name:column_type'" ,
266266 envvar = ["OMNILOAD_COLUMNS" ],
267267 ),
268- ] = None , # type: ignore
268+ ] = None ,
269269 yield_limit : Annotated [
270270 Optional [int ],
271271 typer .Option (
272272 help = "Limit the number of pages yielded from the source" ,
273273 envvar = ["YIELD_LIMIT" , "OMNILOAD_YIELD_LIMIT" ],
274274 ),
275- ] = None , # type: ignore
275+ ] = None ,
276276 staging_bucket : Annotated [
277277 Optional [str ],
278278 typer .Option (
279279 help = "The staging bucket to be used for the ingestion, must be prefixed with 'gs://' or 's3://'" ,
280280 envvar = ["STAGING_BUCKET" , "OMNILOAD_STAGING_BUCKET" ],
281281 ),
282- ] = None , # type: ignore
282+ ] = None ,
283283 mask : Annotated [
284284 Optional [list [str ]],
285285 typer .Option (
286286 help = "Column masking configuration in format 'column:algorithm[:param]'. Can be specified multiple times." ,
287287 envvar = ["MASK" , "OMNILOAD_MASK" ],
288288 ),
289- ] = [], # type: ignore
289+ ] = [],
290290):
291291 import hashlib
292292 import tempfile
@@ -472,7 +472,7 @@ def parse_columns(columns: list[str]) -> dict:
472472
473473 column_hints [key ]["primary_key" ] = True
474474
475- pipeline = dlt .pipeline ( # type: ignore
475+ pipeline = dlt .pipeline (
476476 pipeline_name = m .hexdigest (),
477477 destination = dlt_dest ,
478478 progress = progressInstance ,
@@ -657,13 +657,13 @@ def run_pipeline():
657657 table = dest_table ,
658658 staging_bucket = staging_bucket ,
659659 ),
660- write_disposition = write_disposition , # type: ignore
660+ write_disposition = write_disposition ,
661661 primary_key = (
662662 primary_key if primary_key and len (primary_key ) > 0 else None
663- ), # type: ignore
663+ ),
664664 loader_file_format = (
665- loader_file_format .value if loader_file_format is not None else None # type: ignore
666- ), # type: ignore
665+ loader_file_format .value if loader_file_format is not None else None
666+ ),
667667 )
668668
669669 # Databricks concurrency error patterns that are safe to retry
@@ -796,7 +796,7 @@ def example_uris():
796796
797797@app .command ()
798798def version ():
799- from omniload import __version__ # type: ignore
799+ from omniload import __version__
800800
801801 print (f"v{ __version__ } " )
802802
0 commit comments