Skip to content
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

chore(deps-dev): bump mypy from 1.14.1 to 1.15.0 in /requirements #7863

Merged
merged 10 commits into from
Mar 5, 2025
Merged
Prev Previous commit
fix: Fix type for mode parameter
  • Loading branch information
valerena committed Mar 5, 2025
commit 98418997420a0549d7935acb42556e28288d7e87
4 changes: 2 additions & 2 deletions samcli/lib/utils/tar.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
from contextlib import contextmanager
from pathlib import Path
from tempfile import TemporaryFile
from typing import IO, Callable, Dict, List, Optional, Union
from typing import IO, Callable, Dict, List, Literal, Optional, Union

LOG = logging.getLogger(__name__)

@@ -17,7 +17,7 @@
def create_tarball(
tar_paths: Dict[Union[str, Path], str],
tar_filter: Optional[Callable[[tarfile.TarInfo], Union[None, tarfile.TarInfo]]] = None,
mode: str = "w",
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"] = "w",
dereference: bool = False,
):
"""
Loading
Oops, something went wrong.