Skip to content

Commit

Permalink
Add more types, courtesy of ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Nov 18, 2024
1 parent 6433f64 commit 8bb9c9e
Show file tree
Hide file tree
Showing 88 changed files with 2,067 additions and 1,998 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 8bb9c9e

Please sign in to comment.