changeset 51830 | 454feddab720 |
parent 51795 | 1888846a1ee2 |
parent 51789 | 0f62ea8a9be8 |
child 51859 | f4733654f144 |
--- a/mercurial/posix.py Wed Aug 28 23:25:26 2024 +0200 +++ b/mercurial/posix.py Fri Sep 06 02:12:19 2024 +0200 @@ -23,6 +23,7 @@ from typing import ( Any, AnyStr, + Callable, Iterable, Iterator, List, @@ -552,7 +553,7 @@ return False -_needsshellquote: Optional[Match[bytes]] = None +_needsshellquote: Optional[Callable[[bytes], Optional[Match[bytes]]]] = None def shellquote(s: bytes) -> bytes: