diff -r 58d39c7865e5 -r 9d3721552b6c mercurial/windows.py --- a/mercurial/windows.py Wed Nov 08 01:58:16 2023 +0100 +++ b/mercurial/windows.py Wed Dec 20 12:51:20 2023 +0100 @@ -61,13 +61,7 @@ unlink = win32.unlink if typing.TYPE_CHECKING: - # Replace the various overloads that come along with aliasing stdlib methods - # with the narrow definition that we care about in the type checking phase - # only. This ensures that both Windows and POSIX see only the definition - # that is actually available. - # - # Note that if we check pycompat.TYPE_CHECKING here, it is always False, and - # the methods aren't replaced. + def split(p: bytes) -> Tuple[bytes, bytes]: raise NotImplementedError