We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec1d6c commit 4676a28Copy full SHA for 4676a28
repo_helper_bot/__init__.py
@@ -37,15 +37,18 @@
37
38
# Temporary workaround for https://github.com/jelmer/dulwich/issues/1546
39
40
+# stdlib
41
+from typing import List, Tuple
42
-def _extract_capabilities(text):
43
+# 3rd party
44
+import dulwich.protocol
45
+
46
47
+def _extract_capabilities(text: bytes) -> Tuple[bytes, List[bytes]]:
48
if b"\0" not in text:
49
return text, []
50
text, capabilities, *_ = text.rstrip().split(b"\0")
51
return (text, capabilities.strip().split(b" "))
52
53
-# 3rd party
-import dulwich.protocol
-
54
dulwich.protocol.extract_capabilities = _extract_capabilities
0 commit comments