Third-party stubs: audit more Callable[<parameters>, Any] annotations (#8233)

This commit is contained in:
Alex Waygood
2022-07-04 09:29:47 +01:00
committed by GitHub
parent fb478f0b58
commit 8ef6602e25
12 changed files with 17 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ from collections.abc import Callable, Sequence
from contextlib import AbstractContextManager
from stat import S_IMODE as S_IMODE
from types import TracebackType
from typing import IO, Any
from typing import IO
from typing_extensions import Literal, TypeAlias
import paramiko
@@ -33,7 +33,7 @@ class CnOpts:
def __init__(self, knownhosts: str | None = ...) -> None: ...
def get_hostkey(self, host: str) -> paramiko.PKey: ...
_Callback: TypeAlias = Callable[[int, int], Any]
_Callback: TypeAlias = Callable[[int, int], object]
_Path: TypeAlias = str | bytes
class Connection: