Visitar URL original
`tarfile.open()` is missing `preset` kwarg · Issue #11072 · python/typeshed · GitHub
The Wayback Machine - https://web.archive.org/web/20250506105618/https://github.com/python/typeshed/issues/11072
Skip to content

tarfile.open() is missing preset kwarg #11072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mgorny opened this issue Nov 27, 2023 · 0 comments · Fixed by #11251
Closed

tarfile.open() is missing preset kwarg #11072

mgorny opened this issue Nov 27, 2023 · 0 comments · Fixed by #11251
Labels
help wanted An actionable problem of low to medium complexity where a PR would be very welcome stubs: incomplete Annotations or sub-modules missing from an existing package or module

Comments

@mgorny
Copy link

mgorny commented Nov 27, 2023

In Python 3.9+:

For modes 'w:xz' and 'x:xz', tarfile.open() accepts the keyword argument preset to specify the compression level of the file.

However, the stub seems to be missing that argument and mypy is complaining about it.

@srittau srittau added size-small stubs: incomplete Annotations or sub-modules missing from an existing package or module help wanted An actionable problem of low to medium complexity where a PR would be very welcome labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted An actionable problem of low to medium complexity where a PR would be very welcome stubs: incomplete Annotations or sub-modules missing from an existing package or module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants