mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Extend and fix zipfile (#10861)
* Add `CompleteDirs` and `FastLookup` (Python 3.8+).
* Add `Path.root` (Python 3.8+).
* Use concrete signature for `Path.open()` (Python 3.8).
* Fix signature of `Path.open()` for Python 3.9+:
+ Add overloads for text and binary modes with fixed return types.
+ Disallow extra arguments for binary modes.
+ Replace `*args` and `**kwargs` with accepted arguments for
text modes.
Closes: #10847
This commit is contained in:
1 parent
c47be697a3
commit
3632fc225c
2 files changed
+28
-11
No files matched your search
@@ -144,6 +144,9 @@ types.WrapperDescriptorType.__get__
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
# A property at runtime that works like a method.
|
||||
zipfile.Path.open
|
||||
|
||||
# Removed in 3.12
|
||||
distutils\..*
|
||||
asyncore.dispatcher.addr
|
||||
|
||||
Reference in new issue
Block a user