Skip to content

Commit 4676a28

Browse files
committed
Lint
1 parent 3ec1d6c commit 4676a28

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

repo_helper_bot/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@
3737

3838
# Temporary workaround for https://github.com/jelmer/dulwich/issues/1546
3939

40+
# stdlib
41+
from typing import List, Tuple
4042

41-
def _extract_capabilities(text):
43+
# 3rd party
44+
import dulwich.protocol
45+
46+
47+
def _extract_capabilities(text: bytes) -> Tuple[bytes, List[bytes]]:
4248
if b"\0" not in text:
4349
return text, []
4450
text, capabilities, *_ = text.rstrip().split(b"\0")
4551
return (text, capabilities.strip().split(b" "))
4652

4753

48-
# 3rd party
49-
import dulwich.protocol
50-
5154
dulwich.protocol.extract_capabilities = _extract_capabilities

0 commit comments

Comments
 (0)