@@ -77,7 +77,7 @@ def _get_schema(pair: Tuple[Database, DbPath]) -> Dict[str, RawColumnInfo]:
7777 return db .query_table_schema (table_path )
7878
7979
80- def diff_schemas (table1 , table2 , schema1 , schema2 , columns ):
80+ def diff_schemas (table1 , table2 , schema1 , schema2 , columns ) -> None :
8181 logging .info ("Diffing schemas..." )
8282 attrs = "name" , "type" , "datetime_precision" , "numeric_precision" , "numeric_scale"
8383 for c in columns :
@@ -103,7 +103,7 @@ def diff_schemas(table1, table2, schema1, schema2, columns):
103103
104104
105105class MyHelpFormatter (click .HelpFormatter ):
106- def __init__ (self , ** kwargs ):
106+ def __init__ (self , ** kwargs ) -> None :
107107 super ().__init__ (self , ** kwargs )
108108 self .indent_increment = 6
109109
@@ -281,7 +281,7 @@ def write_usage(self, prog: str, args: str = "", prefix: Optional[str] = None) -
281281 default = None ,
282282 help = "Override the dbt production schema configuration within dbt_project.yml" ,
283283)
284- def main (conf , run , ** kw ):
284+ def main (conf , run , ** kw ) -> None :
285285 log_handlers = _get_log_handlers (kw ["dbt" ])
286286 if kw ["table2" ] is None and kw ["database2" ]:
287287 # Use the "database table table" form
@@ -341,9 +341,7 @@ def main(conf, run, **kw):
341341 production_schema_flag = kw ["prod_schema" ],
342342 )
343343 else :
344- return _data_diff (
345- dbt_project_dir = project_dir_override , dbt_profiles_dir = profiles_dir_override , state = state , ** kw
346- )
344+ _data_diff (dbt_project_dir = project_dir_override , dbt_profiles_dir = profiles_dir_override , state = state , ** kw )
347345 except Exception as e :
348346 logging .error (e )
349347 raise
@@ -389,7 +387,7 @@ def _data_diff(
389387 threads1 = None ,
390388 threads2 = None ,
391389 __conf__ = None ,
392- ):
390+ ) -> None :
393391 if limit and stats :
394392 logging .error ("Cannot specify a limit when using the -s/--stats switch" )
395393 return
0 commit comments