Skip to content

Commit

Permalink
refactor: fix type hint to transformations.preview
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed May 30, 2024
1 parent aeaaa57 commit 3dec2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cognite/client/_api/transformations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def preview(
self,
query: str | None = None,
convert_to_string: bool = False,
limit: int = 100,
limit: int | None = 100,
source_limit: int | None = 100,
infer_schema_limit: int | None = 1000,
) -> TransformationPreviewResult:
Expand All @@ -511,7 +511,7 @@ def preview(
Args:
query (str | None): SQL query to run for preview.
convert_to_string (bool): Stringify values in the query results, default is False.
limit (int): Maximum number of rows to return in the final result, default is 100.
limit (int | None): Maximum number of rows to return in the final result, default is 100.
source_limit (int | None): Maximum number of items to read from the data source or None to run without limit, default is 100.
infer_schema_limit (int | None): Limit for how many rows that are used for inferring result schema, default is 1000.
Expand Down

0 comments on commit 3dec2da

Please sign in to comment.