equal
deleted
inserted
replaced
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: |