From 506cc89119d0416fa33ad3d97a5ed95be368b801 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 26 Jun 2025 18:11:27 +0200 Subject: Document ZstdTarFile.zstopen --- linuxnamespaces/tarutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linuxnamespaces/tarutils.py b/linuxnamespaces/tarutils.py index 1bbfab4..3a152d6 100644 --- a/linuxnamespaces/tarutils.py +++ b/linuxnamespaces/tarutils.py @@ -34,6 +34,9 @@ class ZstdTarFile(tarfile.TarFile): compresslevel: int | None = None, **kwargs: typing.Any, ) -> tarfile.TarFile: + """Open a zstd compressed tar archive with the given name for readin or + writing. Appending is not supported. + """ if mode not in ("r", "w", "x"): raise ValueError("mode must be 'r', 'w' or 'x'") openobj: str | typing.BinaryIO = name if fileobj is None else fileobj -- cgit v1.2.3