Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rossgray committed Nov 28, 2024
1 parent b654947 commit 4751c0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions posthog/temporal/batch_exports/bigquery_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,14 @@ async def managed_table(
project_id: str,
dataset_id: str,
table_id: str,
table_schema: list[bigquery.SchemaField] | None = None,
table_schema: list[bigquery.SchemaField],
exists_ok: bool = True,
not_found_ok: bool = True,
delete: bool = True,
create: bool = True,
) -> collections.abc.AsyncGenerator[bigquery.Table, None]:
"""Manage a table in BigQuery by ensure it exists while in context."""
"""Manage a table in BigQuery by ensuring it exists while in context."""
if create is True:
assert table_schema is not None, "Table schema is required when creating a table"
table = await self.acreate_table(project_id, dataset_id, table_id, table_schema, exists_ok)
else:
table = await self.aget_table(project_id, dataset_id, table_id)
Expand Down

0 comments on commit 4751c0e

Please sign in to comment.