Skip to content

Commit

Permalink
_pygit2 typing: Correct type hint for tree[subscripting]
Browse files Browse the repository at this point in the history
  • Loading branch information
wmanley committed Dec 5, 2023
1 parent a8b2421 commit 37b0ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygit2/_pygit2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ class Tree(Object):
def diff_to_tree(self, tree: Tree = ..., flags: int = ..., context_lines: int = ..., interhunk_lines: int = ..., swap: bool = ...) -> Diff: ...
def diff_to_workdir(self, flags: int = GIT_DIFF_NORMAL, context_lines: int = 3, interhunk_lines: int = 0) -> Diff: ...
def __contains__(self, other: str) -> bool: ... # Tree_contains
def __getitem__(self, index: str | int) -> None: ... # Tree_subscript
def __getitem__(self, index: str | int) -> Object: ... # Tree_subscript
def __iter__(self) -> Iterator[Object]: ...
def __len__(self) -> int: ... # Tree_len
def __rtruediv__(self, other: str) -> Object: ...
Expand Down

0 comments on commit 37b0ce1

Please sign in to comment.