Skip to content

Commit

Permalink
Fix cursor.copy() typing (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
alippai authored Jan 22, 2024
1 parent 90a4d3e commit 3610648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertica_python/vertica/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def iterate(self) -> Generator[Union[List[Any], OrderedDict[str, Any]], None, No
yield row
row = self.fetchone()

def copy(self, sql: str, data: IO[AnyStr], **kwargs: Any) -> None:
def copy(self, sql: str, data: Union[IO[AnyStr], bytes, str], **kwargs: Any) -> None:
"""
Execute a "COPY FROM STDIN" SQL.
Expand Down

0 comments on commit 3610648

Please sign in to comment.