[pysftp] Logging attribute can be bool or str (#13018)

This commit is contained in:
Mikael Lindemann
2024-11-16 16:48:26 +01:00
committed by GitHub
parent 2aa99e6854
commit dfbbf168c9

View File

@@ -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: ...