-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error