mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-29 14:57:25 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user