Skip to content

Commit 12690e8

Browse files
ch3pjwhoefling
authored andcommitted
Add signatures for new functions to __init__.pyi
1 parent 09665df commit 12690e8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/xmlsec/__init__.pyi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import sys
2-
from typing import AnyStr, IO, Iterable, Optional, Type, TypeVar, Union, overload
2+
from typing import (
3+
Any, AnyStr, Callable, IO, Iterable, Optional, Type, TypeVar, Union,
4+
overload)
35

46
from lxml.etree import _Element
57

@@ -24,6 +26,14 @@ _K = TypeVar('_K', bound=Key)
2426
def enable_debug_trace(enabled: bool = ...) -> None: ...
2527
def init() -> None: ...
2628
def shutdown() -> None: ...
29+
def cleanup_callbacks() -> None: ...
30+
def register_default_callbacks() -> None: ...
31+
def register_callbacks(
32+
input_match_callback: Callable[[bytes], bool],
33+
input_open_callback: Callable[[bytes], Any],
34+
input_read_callback: Callable[[Any, memoryview], int],
35+
input_close_callback: Callable[[Any], None],
36+
) -> None: ...
2737
@overload
2838
def base64_default_line_size() -> int: ...
2939
@overload

0 commit comments

Comments
 (0)