Skip to content

Commit 12f6c35

Browse files
committed
* fixed discover_repository type annotation it return None incase no repository was found
* removed unused import of submodule type
1 parent 949b1c6 commit 12f6c35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygit2/_pygit2.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Iterator, Literal, Optional, overload
22
from io import IOBase
3-
from . import Index, Submodule
3+
from . import Index
44
from .enums import (
55
ApplyLocation,
66
BranchType,
@@ -558,7 +558,7 @@ class Worktree:
558558

559559
def discover_repository(
560560
path: str, across_fs: bool = False, ceiling_dirs: str = ...
561-
) -> str: ...
561+
) -> str | None: ...
562562
def hash(data: bytes) -> Oid: ...
563563
def hashfile(path: str) -> Oid: ...
564564
def init_file_backend(path: str, flags: int = 0) -> object: ...

0 commit comments

Comments
 (0)