Content-Length: 330491 | pFad | https://github.com/apache/airflow/commit/644051abcbb87aab906e050eacce3a70379060dd

8E Fix MyPy errors for google/marketing_platform and suite (#20227) · apache/airflow@644051a · GitHub
Skip to content

Commit 644051a

Browse files
authored
Fix MyPy errors for google/marketing_platform and suite (#20227)
Part of #19891
1 parent a208463 commit 644051a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

airflow/providers/google/marketing_platform/hooks/display_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def list_queries(
124124
response = self.get_conn().queries().listqueries().execute(num_retries=self.num_retries)
125125
return response.get('queries', [])
126126

127-
def run_query(self, query_id: str, params: Dict[str, Any]) -> None:
127+
def run_query(self, query_id: str, params: Optional[Dict[str, Any]]) -> None:
128128
"""
129129
Runs a stored query to generate a report.
130130

airflow/providers/google/marketing_platform/operators/display_video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ def __init__(
376376
self,
377377
*,
378378
report_id: str,
379-
params: Dict[str, Any] = None,
380-
parameters: Dict[str, Any] = None,
379+
params: Optional[Dict[str, Any]] = None,
380+
parameters: Optional[Dict[str, Any]] = None,
381381
api_version: str = "v1",
382382
gcp_conn_id: str = "google_cloud_default",
383383
delegate_to: Optional[str] = None,

airflow/providers/google/suite/transfers/sql_to_sheets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
spreadsheet_id: str,
7878
sql_conn_id: str,
7979
parameters: Optional[Union[Mapping, Iterable]] = None,
80-
database: str = None,
80+
database: Optional[str] = None,
8181
spreadsheet_range: str = "Sheet1",
8282
gcp_conn_id: str = "google_cloud_default",
8383
delegate_to: Optional[str] = None,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/644051abcbb87aab906e050eacce3a70379060dd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy