Skip to content

Commit

Permalink
Fix psycopg2.sql.SQL.join annotation
Browse files Browse the repository at this point in the history
Fixes python#10715.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Sep 15, 2023
1 parent bbd9dd1 commit a8ad56e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stubs/psycopg2/psycopg2/sql.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import SupportsIter
from collections.abc import Iterable, Iterator
from typing import Any, Generic, TypeVar

Expand Down Expand Up @@ -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: ...
Expand Down

0 comments on commit a8ad56e

Please sign in to comment.