From 3610648b9b1afd552d4bade9c65aeb23946eaf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Lippai?= Date: Mon, 22 Jan 2024 09:10:56 -0500 Subject: [PATCH] Fix cursor.copy() typing (#546) --- vertica_python/vertica/cursor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertica_python/vertica/cursor.py b/vertica_python/vertica/cursor.py index f67a5644..8827d4bd 100644 --- a/vertica_python/vertica/cursor.py +++ b/vertica_python/vertica/cursor.py @@ -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.