Skip to content

Commit

Permalink
* fixed discover_repository type annotation it return None incase no …
Browse files Browse the repository at this point in the history
…repository was found

* removed unused import of submodule type
  • Loading branch information
Or Hayat committed Aug 8, 2024
1 parent 949b1c6 commit 12f6c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygit2/_pygit2.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Iterator, Literal, Optional, overload
from io import IOBase
from . import Index, Submodule
from . import Index
from .enums import (
ApplyLocation,
BranchType,
Expand Down Expand Up @@ -558,7 +558,7 @@ class Worktree:

def discover_repository(
path: str, across_fs: bool = False, ceiling_dirs: str = ...
) -> str: ...
) -> str | None: ...
def hash(data: bytes) -> Oid: ...
def hashfile(path: str) -> Oid: ...
def init_file_backend(path: str, flags: int = 0) -> object: ...
Expand Down

0 comments on commit 12f6c35

Please sign in to comment.