Skip to content

Commit

Permalink
Add type annotations to compress function
Browse files Browse the repository at this point in the history
  • Loading branch information
Václav Dohnal committed Dec 20, 2024
1 parent 58080b7 commit 6a7664b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_brotli/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
]


def compress(obj):
def compress(obj: bytes) -> bytes:
return brotli.compress(obj, BROTLI_MODE, BROTLI_QUALITY)


Expand Down

0 comments on commit 6a7664b

Please sign in to comment.