Skip to content

Commit

Permalink
Add more type annotations (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer authored Nov 20, 2024
2 parents 96eba5b + 3878e14 commit 83770f2
Show file tree
Hide file tree
Showing 88 changed files with 2,098 additions and 2,006 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ check-contrib:: clean
check-all: check check-pypy check-noextensions

typing:
mypy dulwich
$(PYTHON) -m mypy dulwich

clean::
$(SETUP) clean --all
Expand Down
2 changes: 1 addition & 1 deletion dulwich/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def read_bundle(f):
raise AssertionError(f"unsupported bundle format header: {firstline!r}")


def write_bundle(f, bundle):
def write_bundle(f, bundle) -> None:
version = bundle.version
if version is None:
if bundle.capabilities:
Expand Down
Loading

0 comments on commit 83770f2

Please sign in to comment.