FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs(repository.diff): fix docstring keyword 'flag' -> 'flags' by MukundaKatta · Pull Request #1460 · libgit2/pygit2 · GitHub

Repository navigation

docs(repository.diff): fix docstring keyword 'flag' -> 'flags' - #1460

Merged
jdavid merged 1 commit into
libgit2:masterfrom
MukundaKatta:codex/fix-diff-docstring-flags-kwarg
Apr 21, 2026
Merged

jdavid merged 1 commit into
libgit2:masterfrom
MukundaKatta:codex/fix-diff-docstring-flags-kwarg

Conversation

Copy link
Copy Markdown
Contributor

Summary

`BaseRepository.diff` signature takes `flags: DiffOption = DiffOption.NORMAL`, but its docstring's Keyword arguments block described the parameter as `flag` (singular). The overload stubs in `pygit2/_pygit2.pyi` also use `flags`. Fixed the docstring to match.

Closes #1138

Testing

Docstring-only change.

The BaseRepository.diff signature takes 'flags: DiffOption = ...', not
'flag', but the docstring's Keyword arguments block listed 'flag'.

Closes libgit2#1138
jdavid merged commit 7fd5bfd into libgit2:master Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docstring Typo

2 participants


Back | FazBrowse Home | New Git URL