Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 38 additions & 31 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ testcontainers = "^4.8.1"
jsonnet = "^0.20.0"

[tool.poetry.group.dev.dependencies]
mypy = "==1.3.0"
mypy = "==1.13.0"
ruff = "^0.7.0"

[build-system]
Expand Down
6 changes: 4 additions & 2 deletions scripts/force_layer_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 1 addition & 5 deletions test_runner/fixtures/common_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ def from_json(cls, d: dict[str, Any]) -> TenantTimelineId:
)


# Workaround for compat with python 3.9, which does not have `typing.Self`
TTenantShardId = TypeVar("TTenantShardId", bound="TenantShardId")


class TenantShardId:
def __init__(self, tenant_id: TenantId, shard_number: int, shard_count: int):
self.tenant_id = tenant_id
Expand All @@ -202,7 +198,7 @@ def __init__(self, tenant_id: TenantId, shard_number: int, shard_count: int):
assert self.shard_number < self.shard_count or self.shard_count == 0

@classmethod
def parse(cls: type[TTenantShardId], input: str) -> TTenantShardId:
def parse(cls: type[TenantShardId], input: str) -> TenantShardId:
if len(input) == 32:
return cls(
tenant_id=TenantId(input),
Expand Down
2 changes: 1 addition & 1 deletion test_runner/fixtures/compute_reconfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def handler(request: Request) -> Response:
# This causes the endpoint to query storage controller for its location, which
# is redundant since we already have it here, but this avoids extending the
# neon_local CLI to take full lists of locations
reconfigure_threads.submit(lambda workload=workload: workload.reconfigure()) # type: ignore[no-any-return]
reconfigure_threads.submit(lambda workload=workload: workload.reconfigure()) # type: ignore[misc]

return Response(status=200)

Expand Down
3 changes: 0 additions & 3 deletions test_runner/fixtures/neon_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@
if TYPE_CHECKING:
from typing import (
Any,
TypeVar,
cast,
)

T = TypeVar("T")


# Used to be an ABC. abc.ABC removed due to linter without name change.
class AbstractNeonCli:
Expand Down
Loading
Loading