Skip to content

Commit b45721e

Browse files
dependabot[bot]vicheeymbfrederseshubawsvalerena
authoredMar 5, 2025
chore(deps-dev): bump mypy from 1.14.1 to 1.15.0 in /requirements (#7863)
* chore(deps-dev): bump mypy from 1.14.1 to 1.15.0 in /requirements Bumps [mypy](https://github.com/python/mypy) from 1.14.1 to 1.15.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.14.1...v1.15.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: Fix type for mode parameter --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: vicheey <vichym@amazon.com> Co-authored-by: Frederic Mbea <117131783+mbfreder@users.noreply.github.com> Co-authored-by: seshubaws <116689586+seshubaws@users.noreply.github.com> Co-authored-by: Renato Valenzuela <37676028+valerena@users.noreply.github.com> Co-authored-by: Renato Valenzuela <valerena@amazon.com>
1 parent ff36f03 commit b45721e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎requirements/dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pytest-cov==5.0.0; python_version<"3.9"
99
# type checking and related stubs
1010
# mypy adds new rules in new minor versions, which could cause our PR check to fail
1111
# here we fix its version and upgrade it manually in the future
12-
mypy==1.14.1
12+
mypy==1.15.0
1313
types-pywin32==308.0.0.20250128; python_version>="3.9"
1414
types-pywin32==308.0.0.20241221; python_version<"3.9"
1515
types-PyYAML==6.0.12.20241230

‎samcli/lib/utils/tar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from contextlib import contextmanager
99
from pathlib import Path
1010
from tempfile import TemporaryFile
11-
from typing import IO, Callable, Dict, List, Optional, Union
11+
from typing import IO, Callable, Dict, List, Literal, Optional, Union
1212

1313
LOG = logging.getLogger(__name__)
1414

@@ -17,7 +17,7 @@
1717
def create_tarball(
1818
tar_paths: Dict[Union[str, Path], str],
1919
tar_filter: Optional[Callable[[tarfile.TarInfo], Union[None, tarfile.TarInfo]]] = None,
20-
mode: str = "w",
20+
mode: Literal["x", "x:", "a", "a:", "w", "w:", "w:tar"] = "w",
2121
dereference: bool = False,
2222
):
2323
"""

0 commit comments

Comments
 (0)
Failed to load comments.