Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
In this PR#101324 and issue#101196 the optimized methods ofisdir andisfile were added for windows. If not available they will fall back togenericpath implementations.
The issue withisdir is that this introduced a different signature compared togenericpath:
# in genericpath.pydefisdir(s)->bool: ...# in optimized nt moduledefisdir(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