Skip to content

Commit

Permalink
Bump mypy from 1.9.0 to 1.10.0 (#454)
Browse files Browse the repository at this point in the history
* Bump mypy from 1.9.0 to 1.10.0

Bumps [mypy](https://github.com/python/mypy) from 1.9.0 to 1.10.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix type annotations

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amethyst Reese <[email protected]>
  • Loading branch information
dependabot[bot] and amyreese committed Jun 21, 2024
1 parent bbaa74e commit 8a497f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dev = [
"black == 24.4.2",
"flake8 == 7.0.0",
"flake8-bugbear == 24.4.26",
"mypy == 1.9.0",
"mypy == 1.10.0",
"ufmt == 2.7.0",
"usort == 1.0.8.post1",
]
Expand Down
4 changes: 2 additions & 2 deletions src/fixit/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from contextlib import contextmanager
from dataclasses import replace
from pathlib import Path
from typing import Collection, Iterable, Iterator, Mapping, Optional, Set
from typing import Collection, Generator, Iterator, Mapping, Optional, Set

from libcst import CSTNode, CSTTransformer, Module, parse_module
from libcst.metadata import FullRepoManager, MetadataWrapper, ProviderT
Expand Down Expand Up @@ -60,7 +60,7 @@ def collect_violations(
rules: Collection[LintRule],
config: Config,
timings_hook: Optional[TimingsHook] = None,
) -> Iterable[LintViolation]:
) -> Generator[LintViolation, None, int]:
"""Run multiple `LintRule`s and yield any lint violations.
The optional `timings_hook` parameter will be called (if provided) after all
Expand Down

0 comments on commit 8a497f3

Please sign in to comment.