Skip to content

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

Open
MukundaKatta wants to merge 1 commit intolibgit2:masterfrom
MukundaKatta:codex/fix-diff-docstring-flags-kwarg
Open

docs(repository.diff): fix docstring keyword 'flag' -> 'flags'#1460
MukundaKatta wants to merge 1 commit intolibgit2:masterfrom
MukundaKatta:codex/fix-diff-docstring-flags-kwarg

Conversation

@MukundaKatta
Copy link
Copy Markdown

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
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

1 participant