Skip to content

Commit 5fc3b70

Browse files
committed
add filter_* functions to _pygit2.pyi
1 parent 735ba5a commit 5fc3b70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pygit2/_pygit2.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from io import IOBase
22
from typing import Any, Callable, Iterator, Literal, Optional, TypeAlias, overload
33

4+
from pygit2.filter import Filter
5+
46
from . import Index
57
from .enums import (
68
ApplyLocation,
@@ -822,5 +824,9 @@ def init_file_backend(path: str, flags: int = 0) -> object: ...
822824
def option(opt: Option, *args: Any) -> None: ...
823825
def reference_is_valid_name(refname: str) -> bool: ...
824826
def tree_entry_cmp(a: Object, b: Object) -> int: ...
827+
def filter_register(
828+
name: str, filter_cls: type[Filter], priority: int = GIT_FILTER_DRIVER_PRIORITY
829+
) -> None: ...
830+
def filter_unregister(name: str) -> None: ...
825831

826832
_cache_enums: Callable[..., None]

0 commit comments

Comments
 (0)