From 0ea043253e70d0304478a6d0b58bcda4cc583d08 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 15 Sep 2023 11:16:47 -0700 Subject: [PATCH] Fix `psycopg2.sql.SQL.join` annotation (#10716) --- stubs/psycopg2/psycopg2/sql.pyi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stubs/psycopg2/psycopg2/sql.pyi b/stubs/psycopg2/psycopg2/sql.pyi index 6865e2729..60f7d8714 100644 --- a/stubs/psycopg2/psycopg2/sql.pyi +++ b/stubs/psycopg2/psycopg2/sql.pyi @@ -1,4 +1,3 @@ -from _typeshed import SupportsIter from collections.abc import Iterable, Iterator from typing import Any, Generic, TypeVar @@ -27,7 +26,7 @@ class SQL(Composable): @property def string(self) -> str: ... def format(self, *args: Composable, **kwargs: Composable) -> Composed: ... - def join(self, seq: SupportsIter[Composable]) -> Composed: ... + def join(self, seq: Iterable[Composable]) -> Composed: ... class Identifier(Composable): def __init__(self, *strings: str) -> None: ...