Skip to content

Commit

Permalink
build(deps-dev): bump mypy from 1.8.0 to 1.10.0 (#17984)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump mypy from 1.8.0 to 1.10.0

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

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

Signed-off-by: dependabot[bot] <support@github.com>

* adjust

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
  • Loading branch information
dependabot[bot] and altendky committed May 9, 2024
1 parent ed44484 commit 480bba5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion chia/_tests/util/misc.py
Expand Up @@ -383,7 +383,6 @@ class BenchmarkRunner:
test_id: Optional[TestId] = None
overhead: Optional[float] = None

@functools.wraps(_AssertRuntime)
def assert_runtime(self, *args: Any, **kwargs: Any) -> _AssertRuntime:
kwargs.setdefault("enable_assertion", self.enable_assertion)
kwargs.setdefault("overhead", self.overhead)
Expand Down
5 changes: 1 addition & 4 deletions chia/_tests/util/test_misc.py
Expand Up @@ -325,10 +325,7 @@ async def wait_for_valued_event_waiters(
) -> None:
with anyio.fail_after(delay=adjusted_timeout(timeout)):
for delay in backoff_times():
# ignoring the type since i'm hacking into the private attribute
# hopefully this is ok for testing and if it becomes invalid we
# will end up with an exception and can adjust then
if len(event._event._waiters) >= count: # type: ignore[attr-defined]
if len(event._event._waiters) >= count:
return
await anyio.sleep(delay)

Expand Down
2 changes: 1 addition & 1 deletion chia/util/misc.py
Expand Up @@ -168,7 +168,7 @@ def to_batches(to_split: Collection[T], batch_size: int) -> Iterator[Batch[T]]:
raise ValueError("to_batches: batch_size must be greater than 0.")
total_size = len(to_split)
if total_size == 0:
return iter(())
return

if isinstance(to_split, list):
for batch_start in range(0, total_size, batch_size):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -59,7 +59,7 @@
"twine==5.0.0",
"isort==5.13.2",
"flake8==7.0.0",
"mypy==1.8.0",
"mypy==1.10.0",
"black==24.2.0",
"lxml==5.1.0",
"aiohttp_cors==0.7.0", # For blackd
Expand Down

0 comments on commit 480bba5

Please sign in to comment.