mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 06:19:47 +08:00
psycopg2: Fix missing Protocol base class in file protocols (#10943)
This is an error I introduced in #10630 because I didn't know protocols need to be explicitly inherited from in other protocol subclasses. The added test shows the change. Basically these protocols were unusable.
This commit is contained in:
@@ -83,8 +83,8 @@ threadsafety: int
|
||||
|
||||
__libpq_version__: int
|
||||
|
||||
class _SupportsReadAndReadline(SupportsRead[str], SupportsReadline[str]): ...
|
||||
class _SupportsReadAndReadlineAndWrite(_SupportsReadAndReadline, SupportsWrite[str]): ...
|
||||
class _SupportsReadAndReadline(SupportsRead[str], SupportsReadline[str], Protocol): ...
|
||||
class _SupportsReadAndReadlineAndWrite(_SupportsReadAndReadline, SupportsWrite[str], Protocol): ...
|
||||
|
||||
class cursor:
|
||||
arraysize: int
|
||||
|
||||
Reference in New Issue
Block a user