Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)

This commit is contained in:
Brian Schubert
2025-08-08 11:29:48 +02:00
committed by GitHub
parent a358dc24e8
commit 81c8fcb2e6
131 changed files with 334 additions and 147 deletions
+2
View File
@@ -66,6 +66,7 @@ UNKNOWN: _type
REPLICATION_LOGICAL: int
REPLICATION_PHYSICAL: int
@type_check_only
class _ISQLQuoteProto(Protocol):
# Objects conforming this protocol should implement a getquoted() and optionally a prepare() method.
# The real ISQLQuote class is implemented below with more stuff.
@@ -85,6 +86,7 @@ __libpq_version__: int
_T_co = TypeVar("_T_co", covariant=True)
@type_check_only
class _SupportsReadAndReadline(SupportsRead[_T_co], SupportsReadline[_T_co], Protocol[_T_co]): ...
class cursor: