Add @type_check_only to stub-only private classes in various third-party stubs (#15535)

This commit is contained in:
Semyon Moroz
2026-03-21 18:02:17 -04:00
committed by GitHub
parent 222da0600f
commit 282b1a838a
15 changed files with 56 additions and 18 deletions
@@ -1 +0,0 @@
paramiko.util.SupportsClose
+1 -4
View File
@@ -3,15 +3,12 @@ from collections.abc import Iterable
from hashlib import _Hash
from logging import Logger, LogRecord
from types import TracebackType
from typing import IO, AnyStr, Protocol
from typing import IO, AnyStr
from typing_extensions import Self
from paramiko.config import SSHConfig, SSHConfigDict
from paramiko.hostkeys import HostKeys
class SupportsClose(Protocol):
def close(self) -> None: ...
def inflate_long(s: bytes | bytearray, always_positive: bool = False) -> int: ...
def deflate_long(n: int, add_sign_padding: bool = True) -> bytes: ...
def format_binary(data: bytes | bytearray, prefix: str = "") -> list[str]: ...