mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 09:48:39 +08:00
Fix incorrect keyword-only arguments in tarfile.open() (#13814)
This commit is contained in:
@@ -11,3 +11,7 @@ tarfile.open("test.tar.xz", "w:xz", preset=9)
|
||||
# Test with invalid preset values
|
||||
tarfile.open("test.tar.xz", "w:xz", preset=-1) # type: ignore
|
||||
tarfile.open("test.tar.xz", "w:xz", preset=10) # type: ignore
|
||||
|
||||
# Test pipe modes
|
||||
tarfile.open("test.tar.xz", "r|*")
|
||||
tarfile.open("test.tar.xz", mode="r|*")
|
||||
|
||||
Reference in New Issue
Block a user