Skip to content

chore: fix mypy error with new pygit2 release#472

Merged
skshetry merged 2 commits intomainfrom
fix-mypy
Mar 31, 2026
Merged

chore: fix mypy error with new pygit2 release#472
skshetry merged 2 commits intomainfrom
fix-mypy

Conversation

@skshetry
Copy link
Copy Markdown
Collaborator

See libgit2/pygit2#1457.

Now, pygit2 returns None for valueless boolean entries, instead of failing. Dulwich returns "true" in this case, so do the same here to avoid discrepancies between the two backends.

[some-section "identifier"]
    booleanflag

See libgit2/pygit2#1457.

Now, pygit2 returns None for valueless boolean entries, instead of failing.
Dulwich returns "true" in this case, so do the same here to avoid discrepancies between the two backends.
```ini
[some-section "identifier"]
    booleanflag
```
@skshetry skshetry merged commit e1a1cba into main Mar 31, 2026
22 checks passed
@skshetry skshetry deleted the fix-mypy branch March 31, 2026 04:32
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.

1 participant