build(deps): bump mypy from 1.3.0 to 1.13.0 (#9670)

## Problem
We use a pretty old version of `mypy` 1.3 (released 1.5 years ago), it
produces false positives for `typing.Self`.

## Summary of changes
- Bump `mypy` from 1.3 to 1.13
- Fix new warnings and errors
- Use `typing.Self` whenever we `return self`
This commit is contained in:
Alexander Bayandin
2024-11-22 14:31:36 +00:00
committed by GitHub
parent c10b7f7de9
commit 51d26a261b
17 changed files with 103 additions and 102 deletions
+4 -2
View File
@@ -194,9 +194,11 @@ async def main_impl(args, report_out, client: Client):
tenant_ids = await client.get_tenant_ids()
get_timeline_id_coros = [client.get_timeline_ids(tenant_id) for tenant_id in tenant_ids]
gathered = await asyncio.gather(*get_timeline_id_coros, return_exceptions=True)
assert len(tenant_ids) == len(gathered)
tenant_and_timline_ids = []
for tid, tlids in zip(tenant_ids, gathered, strict=False):
for tid, tlids in zip(tenant_ids, gathered, strict=True):
# TODO: add error handling if tlids isinstance(Exception)
assert isinstance(tlids, list)
for tlid in tlids:
tenant_and_timline_ids.append((tid, tlid))
elif len(comps) == 1: