From dfbbf168c9b606fab68caf8ecd3a58261a1ae194 Mon Sep 17 00:00:00 2001 From: Mikael Lindemann <359941+mikaellindemann@users.noreply.github.com> Date: Sat, 16 Nov 2024 16:48:26 +0100 Subject: [PATCH] [pysftp] Logging attribute can be bool or str (#13018) --- stubs/pysftp/pysftp/__init__.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/pysftp/pysftp/__init__.pyi b/stubs/pysftp/pysftp/__init__.pyi index ec68da074..188e13aff 100644 --- a/stubs/pysftp/pysftp/__init__.pyi +++ b/stubs/pysftp/pysftp/__init__.pyi @@ -25,7 +25,7 @@ from pysftp.helpers import ( ) class CnOpts: - log: bool + log: bool | str compression: bool ciphers: Sequence[str] | None hostkeys: paramiko.HostKeys | None @@ -45,7 +45,7 @@ class Connection: port: int = 22, private_key_pass: str | None = None, ciphers: Sequence[str] | None = None, - log: bool = False, + log: bool | str = False, cnopts: CnOpts | None = None, default_path: _Path | None = None, ) -> None: ...