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] <support@github.com>

* Fix type annotations

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amethyst Reese <amethyst@n7.gg>
  • Loading branch information
dependabot[bot] and amyreese authored 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.