Skip to content

Commit 95c5ea8

Browse files
build(deps): bump mypy from 1.15.0 to 1.16.1 (#10781)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 3aca0ed commit 95c5ea8

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

dvc/repo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __init__( # noqa: PLR0915, PLR0913
167167
self._config = config
168168
self._remote = remote
169169
self._remote_config = remote_config
170-
self._data_index = None
170+
self._data_index: Optional[DataIndex] = None
171171
self._wait_for_lock = _wait_for_lock
172172

173173
if rev and not fs:

dvc/testing/path_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def path(self):
265265

266266

267267
class HTTPURLInfo(URLInfo):
268-
__hash__: Callable[["HTTPURLInfo"], int] = URLInfo.__hash__
268+
__hash__: Callable[["HTTPURLInfo"], int] = URLInfo.__hash__ # type: ignore[assignment]
269269

270270
def __init__(self, url):
271271
p = urlparse(url)

dvc/utils/hydra.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def apply_overrides(path: "StrPath", overrides: list[str]) -> None:
115115
except hydra_errors as e:
116116
raise InvalidArgumentError("Invalid `--set-param` value") from e
117117

118+
assert isinstance(new_data, dict)
118119
merge_dicts(original_data, new_data)
119120
remove_missing_keys(original_data, new_data)
120121

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ gdrive = ["dvc-gdrive>=3,<4"]
8585
gs = ["dvc-gs>=3.0.2,<4"]
8686
hdfs = ["dvc-hdfs>=3,<4"]
8787
lint = [
88-
"mypy==1.15.0",
88+
"mypy==1.16.1",
8989
"pandas-stubs",
9090
"types-colorama",
9191
"types-psutil",

0 commit comments

Comments
 (0)