mercurial/archival.py
changeset 49803 55d45d0de4e7
parent 48946 642e31cb55f0
--- a/mercurial/archival.py	Wed Dec 14 01:38:52 2022 -0500
+++ b/mercurial/archival.py	Wed Dec 14 01:51:33 2022 -0500
@@ -154,9 +154,14 @@
                 )
                 self.fileobj = gzfileobj
                 return (
+                    # taropen() wants Literal['a', 'r', 'w', 'x'] for the mode,
+                    # but Literal[] is only available in 3.8+ without the
+                    # typing_extensions backport.
+                    # pytype: disable=wrong-arg-types
                     tarfile.TarFile.taropen(  # pytype: disable=attribute-error
                         name, pycompat.sysstr(mode), gzfileobj
                     )
+                    # pytype: enable=wrong-arg-types
                 )
             else:
                 try: