Skip to content

Commit

Permalink
Fixed ForwardRef
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Nov 27, 2024
1 parent 4ecca0c commit 82a4871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def rowcount(self) -> int:

def fetch_as_dataframe(
self, num_rows: Union[str, int], start_col: int = 0
) -> Optional[ForwardRef("pandas.DataFrame")]:
) -> Optional[ForwardRef["pandas.DataFrame"]]:
# This place intentionally uses a forward reference to avoid importing
# pandas which might take several seconds.
df = self._ctx.get_dataframe(num_rows, start_col=self._start_col)
Expand Down
2 changes: 1 addition & 1 deletion exasol/analytics/udf/utils/context_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __getattr__(self, name):

def get_dataframe(
self, num_rows: Union[str, int], start_col: int = 0
) -> Optional[ForwardRef("pandas.DataFrame")]:
) -> Optional[ForwardRef["pandas.DataFrame"]]:
# This place intentionally uses a forward reference to avoid importing
# pandas which might take several seconds.
df = self.ctx.get_dataframe(num_rows, start_col=self.start_col)
Expand Down

0 comments on commit 82a4871

Please sign in to comment.