Skip to content

Commit

Permalink
fix type issue and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-cartwright committed Jul 15, 2024
1 parent 70b1b11 commit cf95fe4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def __init__(self) -> None:
)

# self._table_tags[<database_name>][<schema_name>][<table_name>] = list of tags applied to table
self._table_tags: Dict[str, Dict[str, Dict[str, List[SnowflakeTag]]]] = (
defaultdict(lambda: defaultdict(lambda: defaultdict(list)))
)
self._table_tags: Dict[
str, Dict[str, Dict[str, List[SnowflakeTag]]]
] = defaultdict(lambda: defaultdict(lambda: defaultdict(list)))

# self._column_tags[<database_name>][<schema_name>][<table_name>][<column_name>] = list of tags applied to column
self._column_tags: Dict[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def __init__(
config, self.data_dictionary, self.report
)
self.profiler: Optional[SnowflakeProfiler] = profiler
self.snowsight_url_builder: Optional[SnowsightUrlBuilder] = (
snowsight_url_builder
)
self.snowsight_url_builder: Optional[
SnowsightUrlBuilder
] = snowsight_url_builder

# These are populated as side-effects of get_workunits_internal.
self.databases: List[SnowflakeDatabase] = []
Expand Down Expand Up @@ -228,9 +228,9 @@ def get_databases(self) -> Optional[List[SnowflakeDatabase]]:
)
return None
else:
ischema_databases: List[SnowflakeDatabase] = (
self.get_databases_from_ischema(databases)
)
ischema_databases: List[
SnowflakeDatabase
] = self.get_databases_from_ischema(databases)

if len(ischema_databases) == 0:
self.report_error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ record ViewProperties {
/**
* The view logic
*/
viewLogic: string
viewLogic: optional string

/**
* The formatted view logic. This is particularly used for SQL sources, where the SQL
Expand Down

0 comments on commit cf95fe4

Please sign in to comment.