Bug report
Bug description:
In this PR #101324 and issue #101196 the optimized methods of isdir and isfile were added for windows. If not available they will fall back to genericpath implementations.
The issue with isdir is that this introduced a different signature compared to genericpath:
# in genericpath.py
def isdir(s) -> bool: ...
# in optimized nt module
def isdir(path) -> bool: ...
I'm not sure if this was intentional to have different signatures depending on the platform, and there's any possibility to fix this now. Ref: python/typeshed#10751
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs