Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita80e73f

Browse files
committed
Utils and extras updates
1 parent22be930 commita80e73f

File tree

14 files changed

+379
-374
lines changed

14 files changed

+379
-374
lines changed

‎ssh2/agent.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/channel.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/extras.c‎

Lines changed: 50 additions & 21 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/extras.pyi‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fromtypingimportCallable,Any,ParamSpecArgs,ParamSpecKwargs
2+
3+
defeagain_errcode(func:Callable,poller_func:Callable,*args:ParamSpecArgs,**kwargs:ParamSpecKwargs)->Any: ...
4+
defeagain_write_errcode(write_func:Callable,poller_func:Callable,data:bytes)->None: ...

‎ssh2/extras.pyx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
22
Additional functionality not part of the libssh2 API.
33
"""
4-
from typingimport Callable, Any
4+
from typingimport Callable, Any, ParamSpecArgs, ParamSpecKwargs
55

66
from . cimport error_codes
77
from .utilsimport find_eol
88

99

10-
defeagain_errcode(func:Callable, poller_func:Callable, *args, **kwargs) -> Any:
10+
defeagain_errcode(func:Callable, poller_func:Callable, *args:ParamSpecArgs, **kwargs:ParamSpecKwargs) -> Any:
1111
"""Helper function for reading in non-blocking mode.
1212

1313
Any additional arguments and keyword arguments provided are used as arguments to the session function `func`.
@@ -26,7 +26,7 @@ def eagain_errcode(func: Callable, poller_func: Callable, *args, **kwargs) -> An
2626
returnret
2727

2828

29-
def eagain_write_errcode(write_func:Callable, poller_func:Callable, bytes data:bytes) -> None:
29+
def eagain_write_errcode(write_func:Callable, poller_func:Callable, bytesdata) -> None:
3030
"""Helper function for writing in non-blocking mode.
3131

3232
Any additional arguments and keyword arguments provided are used as arguments to the session function `write_func`.

‎ssh2/knownhost.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/listener.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/publickey.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/session.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎ssh2/sftp.c‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp