mercurial/posix.py
changeset 51282 9d3721552b6c
parent 50993 82bc0b26db50
child 51672 031d66801d5f
child 51789 0f62ea8a9be8
equal deleted inserted replaced
51281:58d39c7865e5 51282:9d3721552b6c
    68 unlink = os.unlink
    68 unlink = os.unlink
    69 rename = os.rename
    69 rename = os.rename
    70 removedirs = os.removedirs
    70 removedirs = os.removedirs
    71 
    71 
    72 if typing.TYPE_CHECKING:
    72 if typing.TYPE_CHECKING:
    73     # Replace the various overloads that come along with aliasing stdlib methods
       
    74     # with the narrow definition that we care about in the type checking phase
       
    75     # only.  This ensures that both Windows and POSIX see only the definition
       
    76     # that is actually available.
       
    77     #
       
    78     # Note that if we check pycompat.TYPE_CHECKING here, it is always False, and
       
    79     # the methods aren't replaced.
       
    80 
    73 
    81     def normpath(path: bytes) -> bytes:
    74     def normpath(path: bytes) -> bytes:
    82         raise NotImplementedError
    75         raise NotImplementedError
    83 
    76 
    84     def abspath(path: AnyStr) -> AnyStr:
    77     def abspath(path: AnyStr) -> AnyStr: