# HG changeset patch # User Manuel Jacob # Date 2024-08-06 16:23:59 # Node ID 0f62ea8a9be8efa42e7daaebbe4a945f923e647b # Parent 472699b5ddb36b97c79ea1c65c02089bfc78a20a typing: fix type annotation diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -23,6 +23,7 @@ import unicodedata from typing import ( Any, AnyStr, + Callable, Iterable, Iterator, List, @@ -552,7 +553,7 @@ if pycompat.sysplatform == b'OpenVMS': return False -_needsshellquote: Optional[Match[bytes]] = None +_needsshellquote: Optional[Callable[[bytes], Optional[Match[bytes]]]] = None def shellquote(s: bytes) -> bytes: