Skip to content
Snippets Groups Projects
Commit df5d3b0d6472 authored by Matt Harbison's avatar Matt Harbison
Browse files

typing: add missing signature for mercurial.cext.parsers.parse_index2()

Flagged by pytype 2022.11.18 when the cext stubs are made visible to it.  There
are very likely other signatures that are missing, but this is enough to keep it
happy for now.
parent 9be765b82a90
No related branches found
No related tags found
2 merge requests!485branching: merge default into stable,!326Update to pytype 2022.11.18
...@@ -76,3 +76,7 @@ ...@@ -76,3 +76,7 @@
def insert(self, rev: int) -> None: ... def insert(self, rev: int) -> None: ...
def shortest(self, node: bytes) -> int: ... def shortest(self, node: bytes) -> int: ...
# The IndexObject type here is defined in C, and there's no type for a buffer
# return, as of py3.11. https://github.com/python/typing/issues/593
def parse_index2(data: object, inline: object, format: int = ...) -> Tuple[object, Optional[Tuple[int, object]]]: ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment