:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(deps): upgrade mypy to 2.1.0 (#58446)
Raúl Negrón-Otero10e88f914ec6
diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.ymlindex 7c0bce4b8701..7adddb257975 100644--- a/.github/workflows/ci-python.yml+++ b/.github/workflows/ci-python.yml@@ -149,12 +149,14 @@ jobs:uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5with:path: .mypy_cache- key: mypy-cache-${{ runner.os }}-3.12-${{ hashFiles('**/pyproject.toml', '**/mypy.ini') }}+ key: mypy-cache-${{ runner.os }}-3.12-mypy2-${{ hashFiles('**/pyproject.toml', '**/mypy.ini') }}restore-keys: |- mypy-cache-${{ runner.os }}-3.12-+ mypy-cache-${{ runner.os }}-3.12-mypy2-- name: Check static typingshell: bash -e {0}+ env:+ MYPY_NUM_WORKERS: 2run: |mypy --version && mypy --cache-fine-grained .@@ -163,7 +165,7 @@ jobs:uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5with:path: .mypy_cache- key: mypy-cache-${{ runner.os }}-3.12-${{ hashFiles('**/pyproject.toml', '**/mypy.ini') }}+ key: mypy-cache-${{ runner.os }}-3.12-mypy2-${{ hashFiles('**/pyproject.toml', '**/mypy.ini') }}- name: Check if "schema.py" is up to dateshell: bashdiff --git a/common/hogvm/python/execute.py b/common/hogvm/python/execute.pyindex 9ca96f2a345f..f0c1d582d7ab 100644--- a/common/hogvm/python/execute.py+++ b/common/hogvm/python/execute.py@@ -43,7 +43,7 @@ CALLSTACK_LENGTH = 1000@dataclassclass BytecodeResult:result: Any- bytecodes: dict[str, list[Any]]+ bytecodes: dict[str, Any]stdout: list[str]@@ -55,7 +55,7 @@ def execute_bytecode(team: Optional["Team"] = None,debug=False,) -> BytecodeResult:- bytecodes = input if isinstance(input, dict) else {"root": {"bytecode": input}}+ bytecodes: dict[str, Any] = input if isinstance(input, dict) else {"root": {"bytecode": input}}root_bytecode = bytecodes.get("root", {}).get("bytecode", []) or []if (diff --git a/ee/api/scim/group.py b/ee/api/scim/group.pyindex 3e2759cf8160..04f1feba3fba 100644--- a/ee/api/scim/group.py+++ b/ee/api/scim/group.py@@ -1,5 +1,5 @@import logging-from typing import Union+from typing import Union, castfrom django.db import transactionfrom django.db.models import QuerySet@@ -207,7 +207,7 @@ class PostHogSCIMGroup(SCIMGroup):if path.is_complex:raise ValueError("Complex filtered paths for members are not supported")else:- members_data = value if isinstance(value, list) else [value]+ members_data: list[dict] = cast(list[dict], value if isinstance(value, list) else [value])self._update_members(self.obj, members_data, self._organization_domain)def handle_add(self, path: AttrPath, value: Union[str, list, dict], operation: dict) -> None:diff --git a/ee/billing/dags/job_switchers.py b/ee/billing/dags/job_switchers.pyindex d7595941ac34..e8150c695641 100644--- a/ee/billing/dags/job_switchers.py+++ b/ee/billing/dags/job_switchers.py@@ -1,5 +1,5 @@import json-from typing import Any+from typing import Any, castimport polars as plimport dagster@@ -112,7 +112,7 @@ def get_prior_hashes_from_metadata(domain_hashes_meta = metadata.get("domain_hashes")if domain_hashes_meta and isinstance(domain_hashes_meta, JsonMetadataValue):- return domain_hashes_meta.value or {}+ return cast(dict[str, str], domain_hashes_meta.value) or {}return {}diff --git a/ee/billing/dags/productled_outbound_targets.py b/ee/billing/dags/productled_outbound_targets.pyindex f45375f9f290..35e6ff1f94aa 100644--- a/ee/billing/dags/productled_outbound_targets.py+++ b/ee/billing/dags/productled_outbound_targets.py@@ -1,5 +1,5 @@from datetime import timedelta-from typing import Any+from typing import Any, castfrom django.db.models import Countfrom django.utils import timezone@@ -319,7 +319,7 @@ def get_plo_prior_hashes(context: dagster.AssetExecutionContext) -> dict[str, storg_hashes_meta = metadata.get("org_hashes")if org_hashes_meta and isinstance(org_hashes_meta, JsonMetadataValue):- return org_hashes_meta.value or {}+ return cast(dict[str, str], org_hashes_meta.value) or {}return {}diff --git a/ee/hogai/django_checkpoint/checkpointer.py b/ee/hogai/django_checkpoint/checkpointer.pyindex 314e8d175111..69d0ee1dc8d6 100644--- a/ee/hogai/django_checkpoint/checkpointer.py+++ b/ee/hogai/django_checkpoint/checkpointer.py@@ -33,7 +33,7 @@ class DjangoCheckpointer(BaseCheckpointSaver[str]):(str(checkpoint_write.task_id),checkpoint_write.channel,- self.serde.loads_typed((checkpoint_write.type, checkpoint_write.blob)),+ self.serde.loads_typed((checkpoint_write.type, bytes(checkpoint_write.blob))),)for checkpoint_write in writesif checkpoint_write.type is not None and checkpoint_write.blob is not Nonediff --git a/posthog/admin/inlines/plugin_attachment_inline.py b/posthog/admin/inlines/plugin_attachment_inline.pyindex 34bf1a9403aa..2641506eb17f 100644--- a/posthog/admin/inlines/plugin_attachment_inline.py+++ b/posthog/admin/inlines/plugin_attachment_inline.py@@ -33,7 +33,7 @@ class PluginAttachmentInline(admin.StackedInline):f"file size {attachment.file_size} is larger than {ATTACHMENT_PREVIEW_SIZE_LIMIT_BYTES} bytes")- response = json.dumps(json.loads(attachment.contents), sort_keys=True, indent=4)+ response = json.dumps(json.loads(bytes(attachment.contents)), sort_keys=True, indent=4)return format_html("<pre>{}</pre>", response)except Exception as err:return format_html("cannot preview: {}", err)diff --git a/posthog/api/insight.py b/posthog/api/insight.pyindex 9cb9633b9680..612cda35c8da 100644--- a/posthog/api/insight.py+++ b/posthog/api/insight.py@@ -1508,7 +1508,7 @@ class InsightViewSet(recently_viewed = []for rv in insight_queryset.order_by("-last_viewed_at")[:5]:insight = rv.insight- insight.last_viewed_at = rv.last_viewed_at # type: ignore+ insight.last_viewed_at = rv.last_viewed_atrecently_viewed.append(insight)response = InsightBasicSerializer(recently_viewed, many=True)diff --git a/posthog/api/user_integration.py b/posthog/api/user_integration.pyindex 75a430e9d304..9920fce0e6b0 100644--- a/posthog/api/user_integration.py+++ b/posthog/api/user_integration.py@@ -464,10 +464,12 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:user-to-server tokens, fetch installation token, create/update ``UserIntegration``."""+ user = cast(User, request.user)+posthog_code_flow = Falsedef _error(reason: str) -> HttpResponseRedirect:- logger.warning("github_link: redirecting with error", reason=reason, user_id=request.user.id)+ logger.warning("github_link: redirecting with error", reason=reason, user_id=user.id)if posthog_code_flow:q = urlencode({"provider": "github", "error": reason})return redirect(f"{ACCOUNT_CONNECTED_GITHUB_INTEGRATION_PATH}?{q}")@@ -479,7 +481,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:"github_link: GitHub returned error on callback",error=github_error,description=request.GET.get("error_description"),- user_id=request.user.id,+ user_id=user.id,)if _posthog_code_flow_from_state_query(request):posthog_code_flow = True@@ -499,7 +501,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:# Validate statecache_key = f"{GITHUB_INSTALL_STATE_CACHE_PREFIX}{token}"state_payload = cache.get(cache_key)- if not state_payload or state_payload.get("user_id") != request.user.id:+ if not state_payload or state_payload.get("user_id") != user.id:return _error("invalid_state")if state_payload.get("connect_from") == "posthog_code":posthog_code_flow = True@@ -519,7 +521,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:# Do not require ``current_team`` to match: OAuth completes in a browser# session whose active team may differ from the app that started the flow.if not Integration.objects.filter(- kind="github", integration_id=installation_id, team__in=request.user.teams.all()+ kind="github", integration_id=installation_id, team__in=user.teams.all()).exists():return _error("invalid_installation")installation_ids = [installation_id]@@ -535,7 +537,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:if not isinstance(team_oauth_team_id, int):return _error("invalid_state")# Confirm the user still has access to the team they started this flow from.- if not request.user.teams.filter(id=team_oauth_team_id).exists():+ if not user.teams.filter(id=team_oauth_team_id).exists():return _error("invalid_team")installation_ids = [installation_id]elif oauth_discover_flow:@@ -561,7 +563,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:return _error("installation_fetch_failed")if not installation_ids:return _redirect_to_github_app_install(- request.user,+ user,"posthog_code" if posthog_code_flow else cast(str | None, state_payload.get("connect_from")),)@@ -585,7 +587,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:logger.warning("github_link: installation ownership check failed",installation_id=installation_id,- user_id=request.user.id,+ user_id=user.id,exc_info=True,)return _error("installation_verify_failed")@@ -593,7 +595,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:logger.warning("github_link: user does not have access to installation",installation_id=installation_id,- user_id=request.user.id,+ user_id=user.id,)return _error("installation_not_authorized")@@ -616,7 +618,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:return _error("installation_token_failed")user_github_integration_from_installation(- request.user,+ user,GitHubInstallationAccess(installation_id=installation_id,installation_info=installation_info,@@ -634,7 +636,7 @@ def github_link_complete(request: HttpRequest) -> HttpResponseRedirect:# works whether or not another team in the org has already linked this install.try:team_integration = GitHubIntegration.integration_from_installation_id(- installation_id, team_oauth_team_id, cast(User, request.user)+ installation_id, team_oauth_team_id, user)except Exception:logger.warning(diff --git a/posthog/batch_exports/tests/debug/test_debugger.py b/posthog/batch_exports/tests/debug/test_debugger.pyindex 6066a4cfa7ac..97690c7d4e1f 100644--- a/posthog/batch_exports/tests/debug/test_debugger.py+++ b/posthog/batch_exports/tests/debug/test_debugger.py@@ -163,8 +163,8 @@ def test_debugger_can_load_different_sets_of_batch_exports(team):loaded = bedbg.load_batch_exports(name="test-batch-export-S3-False-False")assert len(loaded) == 1- assert bedbg.loaded_batch_exports == loaded- assert all(batch_export.name == "test-batch-export-S3-False-False" for batch_export in loaded)+ assert bedbg.loaded_batch_exports == loaded # type: ignore[comparison-overlap]+ assert all(batch_export.name == "test-batch-export-S3-False-False" for batch_export in loaded) # type: ignore[unreachable]def test_debugger_get_latest_run(team):diff --git a/posthog/hogql_queries/insights/trends/test/test_trends_dashboard_filters.py b/posthog/hogql_queries/insights/trends/test/test_trends_dashboard_filters.pyindex fa2367df11ab..e7143b88b486 100644--- a/posthog/hogql_queries/insights/trends/test/test_trends_dashboard_filters.py+++ b/posthog/hogql_queries/insights/trends/test/test_trends_dashboard_filters.py@@ -162,7 +162,7 @@ class TestTrendsDashboardFilters(BaseTest):assert query_runner.query.dateRange.date_from == "2020-01-09"assert query_runner.query.dateRange.date_to == "2020-01-20"assert query_runner.query.properties == [EventPropertyFilter(key="key", value="value", operator="exact")]- assert query_runner.query.breakdownFilter is None+ assert query_runner.query.breakdownFilter is None # type: ignore[unreachable]assert query_runner.query.trendsFilter is Nonedef test_properties_list_extends_filters_list(self):@@ -187,7 +187,7 @@ class TestTrendsDashboardFilters(BaseTest):assert query_runner.query.dateRange.date_from == "2020-01-09"assert query_runner.query.dateRange.date_to == "2020-01-20"- assert query_runner.query.properties == PropertyGroupFilter(+ assert query_runner.query.properties == PropertyGroupFilter( # type: ignore[comparison-overlap]type=FilterLogicalOperator.AND_,values=[PropertyGroupFilterValue(@@ -204,7 +204,7 @@ class TestTrendsDashboardFilters(BaseTest):),],)- assert query_runner.query.breakdownFilter is None+ assert query_runner.query.breakdownFilter is None # type: ignore[unreachable]assert query_runner.query.trendsFilter is Nonedef test_properties_list_extends_filters_group(self):diff --git a/posthog/hogql_queries/utils/query_date_range.py b/posthog/hogql_queries/utils/query_date_range.pyindex f5b9be63a3a8..b71ac54323db 100644--- a/posthog/hogql_queries/utils/query_date_range.py+++ b/posthog/hogql_queries/utils/query_date_range.py@@ -466,7 +466,7 @@ class QueryDateRangeWithIntervals(QueryDateRange):def get_start_of_interval_hogql(self, *, source: ast.Expr | None = None) -> ast.Expr:trunc_func = get_trunc_func_ch(self.interval_type.name.lower())- trunc_func_args = [source] if source else [ast.Constant(value=self.date_from())]+ trunc_func_args: list[ast.Expr] = [source] if source else [ast.Constant(value=self.date_from())]if trunc_func == "toStartOfWeek":trunc_func_args.append(ast.Constant(value=int((WeekStartDay(self._team.week_start_day or 0)).clickhouse_mode))diff --git a/posthog/models/plugin.py b/posthog/models/plugin.pyindex 824e76784cc8..bf66a22cae79 100644--- a/posthog/models/plugin.py+++ b/posthog/models/plugin.py@@ -275,7 +275,7 @@ class PluginAttachment(models.Model):contents = models.BinaryField()def parse_contents(self) -> str | None:- contents: bytes | None = self.contents+ contents: bytes | None = bytes(self.contents) if self.contents else Noneif not contents:return None@@ -350,7 +350,8 @@ class PluginSourceFileManager(models.Manager):If plugin.json has already been parsed before this is called, its value can be passed in as an optimization."""try:- plugin_json, index_ts, frontend_tsx, site_ts = extract_plugin_code(plugin.archive, plugin_json_parsed)+ archive = bytes(plugin.archive) if plugin.archive else None+ plugin_json, index_ts, frontend_tsx, site_ts = extract_plugin_code(archive, plugin_json_parsed)except ValueError as e:raise exceptions.ValidationError(f"{e} in plugin {plugin}")diff --git a/posthog/personhog_client/converters.py b/posthog/personhog_client/converters.pyindex bed5dc9c59f7..8be46c07e7cd 100644--- a/posthog/personhog_client/converters.py+++ b/posthog/personhog_client/converters.py@@ -65,7 +65,7 @@ def proto_person_to_model(obj = PersonModel(id=person.id,- uuid=uuid_mod.UUID(person.uuid) if person.uuid else None,+ uuid=uuid_mod.UUID(person.uuid) if person.uuid else None, # type: ignore[misc]team_id=person.team_id,properties=json.loads(person.properties) if person.properties else {},is_identified=person.is_identified,diff --git a/posthog/temporal/subscriptions/snapshot_activities.py b/posthog/temporal/subscriptions/snapshot_activities.pyindex 92d07aee4dc2..824820c1d376 100644--- a/posthog/temporal/subscriptions/snapshot_activities.py+++ b/posthog/temporal/subscriptions/snapshot_activities.py@@ -341,7 +341,7 @@ def _load_insight_images(exported_asset_ids: list[int], team_id: int) -> dict[inSUBSCRIPTION_SUMMARY_IMAGE_SKIPPED.labels(reason="duplicate_insight").inc()continue- content: bytes | None = asset.content+ content: bytes | None = bytes(asset.content) if asset.content else Noneif not content and asset.content_location:try:content = object_storage.read_bytes(asset.content_location, missing_ok=True)diff --git a/products/batch_exports/backend/temporal/pipeline/types.py b/products/batch_exports/backend/temporal/pipeline/types.pyindex cf276ef42a0c..77324a57ddb5 100644--- a/products/batch_exports/backend/temporal/pipeline/types.py+++ b/products/batch_exports/backend/temporal/pipeline/types.py@@ -29,9 +29,7 @@ class BatchExportResult:case None:return Nonecase error:- # mypy cannot narrow types properly, error can only be BatchExportError- # See: https://github.com/python/mypy/issues/19081- return f"{error.type}: {error.message}" # type: ignore[union-attr]+ return f"{error.type}: {error.message}"@classmethoddef from_exception(cls, e: Exception) -> "BatchExportResult":diff --git a/products/notebooks/backend/test/test_kernel_runtime.py b/products/notebooks/backend/test/test_kernel_runtime.pyindex 35c21863407a..eaa6ee6034bd 100644--- a/products/notebooks/backend/test/test_kernel_runtime.py+++ b/products/notebooks/backend/test/test_kernel_runtime.py@@ -225,7 +225,7 @@ class TestKernelRuntimeService(BaseTest):)assert result == "ok" # type: ignore- assert mocked_execute.call_args.kwargs["variable_names"] == ["valid", "_also_valid"]+ assert mocked_execute.call_args.kwargs["variable_names"] == ["valid", "_also_valid"] # type: ignore[unreachable]def test_execute_in_sandbox_parses_output(self) -> None:service = KernelRuntimeService(execution_timeout=5)diff --git a/products/web_analytics/dags/cache_favicons.py b/products/web_analytics/dags/cache_favicons.pyindex e4fab97f4dbd..4afe09182ebd 100644--- a/products/web_analytics/dags/cache_favicons.py+++ b/products/web_analytics/dags/cache_favicons.py@@ -1,3 +1,4 @@+from typing import castfrom urllib.parse import urlparsefrom django.conf import settings@@ -19,7 +20,7 @@ def get_last_cached_domains(context: dagster.AssetExecutionContext, asset_key: smetadata = last_mat.asset_materialization.metadatacached_domains_meta = metadata.get("cached_domains")if cached_domains_meta and isinstance(cached_domains_meta, dagster.JsonMetadataValue):- return set(cached_domains_meta.value)+ return set(cast(list[str], cached_domains_meta.value))return set()diff --git a/pyproject.toml b/pyproject.tomlindex ca9a3e308e0e..133a79b05a5a 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -221,7 +221,7 @@ dev = ["grpcio-tools~=1.71.0","protoletariat~=3.3.10","ipython~=9.3.0",- "mypy~=1.19.1",+ "mypy~=2.1.0","mypy-extensions~=1.1.0","ty==0.0.29",# openapi-spec-validator needed for prance as a validation backenddiff --git a/uv.lock b/uv.lockindex ec21eef95892..98ca6aa4ada7 100644--- a/uv.lock+++ b/uv.lock@@ -11,13 +11,13 @@ resolution-markers = [][options]-exclude-newer = "2026-05-12T01:56:28.01014935Z"+exclude-newer = "2026-05-12T12:28:26.957458Z"exclude-newer-span = "P7D"[options.exclude-newer-package]-posthoganalytics = falsepixelhog = falsehogql-parser = false+posthoganalytics = false[manifest]members = [@@ -292,6 +292,29 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/c9/7f/09065fd9e27da0eda08b4d6897f1c13535066174cc023af248fc2a8d5e5a/asn1crypto-1.5.1-py2.py3-none-any.whl", hash = "sha256:db4e40728b728508912cbb3d44f19ce188f218e9eba635821bb4b68564f8fd67", size = 105045, upload-time = "2022-03-15T14:46:51.055Z" },]+[[package]]+name = "ast-serialize"+version = "0.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a9/9d/912fefab0e30aee6a3af8a62bbea4a81b29afa4ba2c973d31170620a26de/ast_serialize-0.3.0.tar.gz", hash = "sha256:1bc3ca09a63a021376527c4e938deedd11d11d675ce850e6f9c7487f5889992b", size = 60689, upload-time = "2026-04-30T23:24:48.104Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/93/72abad83966ed6235647c9f956417dc1e17e997696388521910e3d1fa3f4/ast_serialize-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:2ec2fafa5e4313cc8feed96e436ebe19ac7bc6fa41fbc2827e826c48b9e4c3a9", size = 1190024, upload-time = "2026-04-30T23:24:22.486Z" },+ { url = "https://files.pythonhosted.org/packages/85/4f/eb88584b2f0234e581762011208ca203252bf6c98e59b4769daa571f3576/ast_serialize-0.3.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:ef6d3c08b7b4cd29b48410338e134764a00e76d25841eb02c1084e868c888ecc", size = 1178633, upload-time = "2026-04-30T23:24:24.35Z" },+ { url = "https://files.pythonhosted.org/packages/56/51/cf1ec1ff3e616373d0dcbd5fad502e0029dc541f13ab642259762a7d127f/ast_serialize-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3d841424f41b886e98044abc80769c14a956e6e5ccd5fb5b0d9f5ead72be18a4", size = 1241351, upload-time = "2026-04-30T23:24:25.987Z" },+ { url = "https://files.pythonhosted.org/packages/0d/44/68fcf50478cf1093f2d423f034ae06453122c8b415d8e21a44668eca485d/ast_serialize-0.3.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d21453734ad39367ede5d37efe4f59f830ce1c09f432fc72a90e368f77a4a3e7", size = 1239582, upload-time = "2026-04-30T23:24:27.808Z" },+ { url = "https://files.pythonhosted.org/packages/9d/c1/a6c9fa284eceb5fc6f21347e968445a051d7ca2c4d34e6a04314646dbcee/ast_serialize-0.3.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f5e110cdce2a347e1dd987529c88ef54d26f67848dce3eba1b3b2cc2cf085c94", size = 1448853, upload-time = "2026-04-30T23:24:29.534Z" },+ { url = "https://files.pythonhosted.org/packages/23/5f/8ad3829a09e4e8c5328a53ce7d4711d660944e3e164c5f6abcc2c8f27167/ast_serialize-0.3.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3b6e23a98e57560a055f5c4b68700a0fd5ce483d2814c23140b3638c7f5d1e61", size = 1262204, upload-time = "2026-04-30T23:24:31.482Z" },+ { url = "https://files.pythonhosted.org/packages/25/13/44aa28d97f10e25247e8576b5f6b2795d4fa1a80acc88acc942c508d06f7/ast_serialize-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c1c9e763d70293d65ce1e1ea8c943140c68d0953f0268c7ee0998f2e07f77dd0", size = 1266458, upload-time = "2026-04-30T23:24:33.088Z" },+ { url = "https://files.pythonhosted.org/packages/d8/58/b3a8be3777cd3744324fd5cec0d80d37cd96fc7cbb0fb010e03dff1e870f/ast_serialize-0.3.0-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4388a1796c228f1ce5c391426f7d21a0003ad3b47f677dbeded9bd1a85c7209f", size = 1308700, upload-time = "2026-04-30T23:24:34.657Z" },+ { url = "https://files.pythonhosted.org/packages/13/03/f8312d6b57f5471a9dc7946f22b8798a1fc296d38c25766223aacadec42c/ast_serialize-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5283cdcc0c64c3d8b9b688dc6aaa012d9c0cf1380a7f774a6bae6a1c01b3205a", size = 1416724, upload-time = "2026-04-30T23:24:36.562Z" },+ { url = "https://files.pythonhosted.org/packages/50/5d/13fc3789a7abac00559da2e2e9f386db4612aa1f84fc53d09bf714c37545/ast_serialize-0.3.0-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:f5ef88cc5842a5d7a6ac09dc0d5fc2c98f5d276c1f076f866d55047ce886785b", size = 1515441, upload-time = "2026-04-30T23:24:38.018Z" },+ { url = "https://files.pythonhosted.org/packages/eb/b9/7ab43fc7a23b1f970281093228f5f79bed6edeed7a3e672bde6d7a832a58/ast_serialize-0.3.0-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:cc14bf402bdc0978594ecce783793de2c7470cd4f5cd7eb286ca97ed8ff7cba9", size = 1510522, upload-time = "2026-04-30T23:24:39.798Z" },+ { url = "https://files.pythonhosted.org/packages/56/ec/d75fc2b788d319f1fad77c14156896f31afdfc68af85b505e5bdebcb9592/ast_serialize-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:11eae0cf1b7b3e0678133cc2daa974ea972caf02eb4b3aa062af6fa9acd52c57", size = 1460917, upload-time = "2026-04-30T23:24:41.305Z" },+ { url = "https://files.pythonhosted.org/packages/95/74/f99c81193a2725911e1911ae567ed27c2f2419332c7f3537366f9d238cac/ast_serialize-0.3.0-cp39-abi3-win32.whl", hash = "sha256:2db3dd99de5e6a5a11d7dda73de8750eb6e5baaf25245adf7bdcfe64b6108ae2", size = 1067804, upload-time = "2026-04-30T23:24:43.091Z" },+ { url = "https://files.pythonhosted.org/packages/16/81/76af00c47daa151e89f98ae21fbbcb2840aaa9f5766579c4da76a3c57188/ast_serialize-0.3.0-cp39-abi3-win_amd64.whl", hash = "sha256:a2cd125adccf7969470621905d302750cd25951f22ea430d9a25b7be031e5549", size = 1105561, upload-time = "2026-04-30T23:24:44.578Z" },+ { url = "https://files.pythonhosted.org/packages/bd/46/d3ec57ad500f598d1554bd14ce4df615960549ab2844961bc4e1f5fbd174/ast_serialize-0.3.0-cp39-abi3-win_arm64.whl", hash = "sha256:0dd00da29985f15f50dc35728b7e1e7c84507bccfea1d9914738530f1c72238a", size = 1077165, upload-time = "2026-04-30T23:24:46.377Z" },+]+[[package]]name = "asttokens"version = "3.0.0"@@ -3720,21 +3743,23 @@ wheels = [[[package]]name = "librt"-version = "0.7.7"+version = "0.11.0"source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/b7/29/47f29026ca17f35cf299290292d5f8331f5077364974b7675a353179afa2/librt-0.7.7.tar.gz", hash = "sha256:81d957b069fed1890953c3b9c3895c7689960f233eea9a1d9607f71ce7f00b2c", size = 145910, upload-time = "2026-01-01T23:52:22.87Z" }+sdist = { url = "https://files.pythonhosted.org/packages/40/08/9e7f6b5d2b5bed6ad055cdd5925f192bb403a51280f86b56554d9d0699a2/librt-0.11.0.tar.gz", hash = "sha256:075dc3ef4458a278e0195cbf6ac9d38808d9b906c5a6c7f7f79c3888276a3fb1", size = 200139, upload-time = "2026-05-10T18:17:25.138Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/56/72/1cd9d752070011641e8aee046c851912d5f196ecd726fffa7aed2070f3e0/librt-0.7.7-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2a85a1fc4ed11ea0eb0a632459ce004a2d14afc085a50ae3463cd3dfe1ce43fc", size = 55687, upload-time = "2026-01-01T23:51:16.291Z" },- { url = "https://files.pythonhosted.org/packages/50/aa/d5a1d4221c4fe7e76ae1459d24d6037783cb83c7645164c07d7daf1576ec/librt-0.7.7-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c87654e29a35938baead1c4559858f346f4a2a7588574a14d784f300ffba0efd", size = 57136, upload-time = "2026-01-01T23:51:17.363Z" },- { url = "https://files.pythonhosted.org/packages/23/6f/0c86b5cb5e7ef63208c8cc22534df10ecc5278efc0d47fb8815577f3ca2f/librt-0.7.7-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:c9faaebb1c6212c20afd8043cd6ed9de0a47d77f91a6b5b48f4e46ed470703fe", size = 165320, upload-time = "2026-01-01T23:51:18.455Z" },- { url = "https://files.pythonhosted.org/packages/16/37/df4652690c29f645ffe405b58285a4109e9fe855c5bb56e817e3e75840b3/librt-0.7.7-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1908c3e5a5ef86b23391448b47759298f87f997c3bd153a770828f58c2bb4630", size = 174216, upload-time = "2026-01-01T23:51:19.599Z" },- { url = "https://files.pythonhosted.org/packages/9a/d6/d3afe071910a43133ec9c0f3e4ce99ee6df0d4e44e4bddf4b9e1c6ed41cc/librt-0.7.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:dbc4900e95a98fc0729523be9d93a8fedebb026f32ed9ffc08acd82e3e181503", size = 189005, upload-time = "2026-01-01T23:51:21.052Z" },- { url = "https://files.pythonhosted.org/packages/d5/18/74060a870fe2d9fd9f47824eba6717ce7ce03124a0d1e85498e0e7efc1b2/librt-0.7.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a7ea4e1fbd253e5c68ea0fe63d08577f9d288a73f17d82f652ebc61fa48d878d", size = 183961, upload-time = "2026-01-01T23:51:22.493Z" },- { url = "https://files.pythonhosted.org/packages/7c/5e/918a86c66304af66a3c1d46d54df1b2d0b8894babc42a14fb6f25511497f/librt-0.7.7-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:ef7699b7a5a244b1119f85c5bbc13f152cd38240cbb2baa19b769433bae98e50", size = 177610, upload-time = "2026-01-01T23:51:23.874Z" },- { url = "https://files.pythonhosted.org/packages/b2/d7/b5e58dc2d570f162e99201b8c0151acf40a03a39c32ab824dd4febf12736/librt-0.7.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:955c62571de0b181d9e9e0a0303c8bc90d47670a5eff54cf71bf5da61d1899cf", size = 199272, upload-time = "2026-01-01T23:51:25.341Z" },- { url = "https://files.pythonhosted.org/packages/18/87/8202c9bd0968bdddc188ec3811985f47f58ed161b3749299f2c0dd0f63fb/librt-0.7.7-cp312-cp312-win32.whl", hash = "sha256:1bcd79be209313b270b0e1a51c67ae1af28adad0e0c7e84c3ad4b5cb57aaa75b", size = 43189, upload-time = "2026-01-01T23:51:26.799Z" },- { url = "https://files.pythonhosted.org/packages/61/8d/80244b267b585e7aa79ffdac19f66c4861effc3a24598e77909ecdd0850e/librt-0.7.7-cp312-cp312-win_amd64.whl", hash = "sha256:4353ee891a1834567e0302d4bd5e60f531912179578c36f3d0430f8c5e16b456", size = 49462, upload-time = "2026-01-01T23:51:27.813Z" },- { url = "https://files.pythonhosted.org/packages/2d/1f/75db802d6a4992d95e8a889682601af9b49d5a13bbfa246d414eede1b56c/librt-0.7.7-cp312-cp312-win_arm64.whl", hash = "sha256:a76f1d679beccccdf8c1958e732a1dfcd6e749f8821ee59d7bec009ac308c029", size = 42828, upload-time = "2026-01-01T23:51:28.804Z" },+ { url = "https://files.pythonhosted.org/packages/8b/d0/07c77e067f0838949b43bd89232c29d72efebb9d2801a9750184eb706b71/librt-0.11.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b87504f1690a23b9a2cca841191a04f83895d4fc2dd04df91d82b1a04ca2ad46", size = 144147, upload-time = "2026-05-10T18:15:53.227Z" },+ { url = "https://files.pythonhosted.org/packages/7a/24/8493538fa4f62f982686398a5b8f68008138a75086abdea19ade64bf4255/librt-0.11.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40071fc5fe0ce8daa6de616702314a01e1250711682b0523d6ab8d4525910cb3", size = 143614, upload-time = "2026-05-10T18:15:54.657Z" },+ { url = "https://files.pythonhosted.org/packages/ff/1e/f8bad050810d9171f34a1648ed910e56814c2ba61639f2bd53c6377ae24b/librt-0.11.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:137e79445c896a0ea7b265f52d23954e05b64222ee1af69e2cb34219067cbb67", size = 485538, upload-time = "2026-05-10T18:15:56.117Z" },+ { url = "https://files.pythonhosted.org/packages/c0/fe/3594ebfbaf03084ba4b120c9ba5c3183fd938a48725e9bbe6ff0a5159ad8/librt-0.11.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:cca6644054e78746d8d4ef238681f9c34ff8b584fe6b988ecebb8db3b15e622a", size = 479623, upload-time = "2026-05-10T18:15:57.544Z" },+ { url = "https://files.pythonhosted.org/packages/b0/da/5d1876984b3746c85dbd219dbfcb73c85f54ee263fd32e5b2a632ec14571/librt-0.11.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5b0eea49f5562861ee8d757a32ef7d559c1d35be2aaaa1ec28941d74c9ffc8a", size = 513082, upload-time = "2026-05-10T18:15:58.805Z" },+ { url = "https://files.pythonhosted.org/packages/19/6e/55bdf5d5ca00c3e18430690bf2c953d8d3ffd3c337418173d33dec985dc9/librt-0.11.0-cp312-cp312-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0d1029d7e1ae1a7e647ed6fb5df8c4ce2dffefb7a9f5fd1376a4554d96dac09f", size = 508105, upload-time = "2026-05-10T18:16:00.2Z" },+ { url = "https://files.pythonhosted.org/packages/07/10/f1f23a7c595ee90ece4d35c851e5d104b1311a887ed1b4ac4c35bbd13da8/librt-0.11.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bc3ce6b33c5828d9e80592011a5c584cb2ce86edbc4088405f70da47dc1d1b3b", size = 522268, upload-time = "2026-05-10T18:16:01.708Z" },+ { url = "https://files.pythonhosted.org/packages/b6/02/5720f5697a7f54b78b3aefbe20df3a48cedcff1276618c4aa481177942ed/librt-0.11.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:936c5995f3514a42111f20099397d8177c79b4d7e70961e396c6f5a0a3566766", size = 527348, upload-time = "2026-05-10T18:16:03.496Z" },+ { url = "https://files.pythonhosted.org/packages/50/db/b4a47c6f91db4ff76348a0b3dd0cc65e090a078b765a810a62ff9434c3d3/librt-0.11.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:9bc0ca6ad9381cbe8e4aa6e5726e4c80c78115a6e9723c599ed1d73e092bc49d", size = 516294, upload-time = "2026-05-10T18:16:05.173Z" },+ { url = "https://files.pythonhosted.org/packages/9e/58/9384b2f4eb1ed1d273d40948a7c5c4b2360213b402ef3be4641c06299f9c/librt-0.11.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:070aa8c26c0a74774317a72df8851facc7f0f012a5b406557ac56992d92e1ec8", size = 553608, upload-time = "2026-05-10T18:16:06.839Z" },+ { url = "https://files.pythonhosted.org/packages/21/7b/5aa8848a7c6a9278c79375146da1812e695754ceec5f005e6043461a7315/librt-0.11.0-cp312-cp312-win32.whl", hash = "sha256:6bf14feb84b05ae945277395451998c89c54d0def4070eb5c08de544930b245a", size = 101879, upload-time = "2026-05-10T18:16:08.103Z" },+ { url = "https://files.pythonhosted.org/packages/37/33/8a745436944947575b584231750a41417de1a38cf6a2e9251d1065651c09/librt-0.11.0-cp312-cp312-win_amd64.whl", hash = "sha256:75672f0bc524ede266287d532d7923dbce94c7514ad07627bac3d0c6d92cc4d9", size = 119831, upload-time = "2026-05-10T18:16:09.174Z" },+ { url = "https://files.pythonhosted.org/packages/59/67/a6739ac96e28b7855808bdb0370e250606104a859750d209e5a0716fe7ab/librt-0.11.0-cp312-cp312-win_arm64.whl", hash = "sha256:2f10cf143e4a9bb0f4f5af568a00df94a2d69ef41c2579584454bb0fe5cc642c", size = 103470, upload-time = "2026-05-10T18:16:10.369Z" },][[package]]@@ -4161,23 +4186,25 @@ wheels = [[[package]]name = "mypy"-version = "1.19.1"+version = "2.1.0"source = { registry = "https://pypi.org/simple" }dependencies = [+ { name = "ast-serialize" },{ name = "librt", marker = "platform_python_implementation != 'PyPy'" },{ name = "mypy-extensions" },{ name = "pathspec" },{ name = "typing-extensions" },]-sdist = { url = "https://files.pythonhosted.org/packages/f5/db/4efed9504bc01309ab9c2da7e352cc223569f05478012b5d9ece38fd44d2/mypy-1.19.1.tar.gz", hash = "sha256:19d88bb05303fe63f71dd2c6270daca27cb9401c4ca8255fe50d1d920e0eb9ba", size = 3582404, upload-time = "2025-12-15T05:03:48.42Z" }+sdist = { url = "https://files.pythonhosted.org/packages/82/15/cca9d88503549ed6fedeaa1d448cdddd542ee8a490232d732e278036fbf2/mypy-2.1.0.tar.gz", hash = "sha256:81e76ad12c2d804512e9b13240d1588316531bfba07558286078bfbce9613633", size = 3898359, upload-time = "2026-05-11T18:37:36.237Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/06/8a/19bfae96f6615aa8a0604915512e0289b1fad33d5909bf7244f02935d33a/mypy-1.19.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a8174a03289288c1f6c46d55cef02379b478bfbc8e358e02047487cad44c6ca1", size = 13206053, upload-time = "2025-12-15T05:03:46.622Z" },- { url = "https://files.pythonhosted.org/packages/a5/34/3e63879ab041602154ba2a9f99817bb0c85c4df19a23a1443c8986e4d565/mypy-1.19.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ffcebe56eb09ff0c0885e750036a095e23793ba6c2e894e7e63f6d89ad51f22e", size = 12219134, upload-time = "2025-12-15T05:03:24.367Z" },- { url = "https://files.pythonhosted.org/packages/89/cc/2db6f0e95366b630364e09845672dbee0cbf0bbe753a204b29a944967cd9/mypy-1.19.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b64d987153888790bcdb03a6473d321820597ab8dd9243b27a92153c4fa50fd2", size = 12731616, upload-time = "2025-12-15T05:02:44.725Z" },- { url = "https://files.pythonhosted.org/packages/00/be/dd56c1fd4807bc1eba1cf18b2a850d0de7bacb55e158755eb79f77c41f8e/mypy-1.19.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c35d298c2c4bba75feb2195655dfea8124d855dfd7343bf8b8c055421eaf0cf8", size = 13620847, upload-time = "2025-12-15T05:03:39.633Z" },- { url = "https://files.pythonhosted.org/packages/6d/42/332951aae42b79329f743bf1da088cd75d8d4d9acc18fbcbd84f26c1af4e/mypy-1.19.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:34c81968774648ab5ac09c29a375fdede03ba253f8f8287847bd480782f73a6a", size = 13834976, upload-time = "2025-12-15T05:03:08.786Z" },- { url = "https://files.pythonhosted.org/packages/6f/63/e7493e5f90e1e085c562bb06e2eb32cae27c5057b9653348d38b47daaecc/mypy-1.19.1-cp312-cp312-win_amd64.whl", hash = "sha256:b10e7c2cd7870ba4ad9b2d8a6102eb5ffc1f16ca35e3de6bfa390c1113029d13", size = 10118104, upload-time = "2025-12-15T05:03:10.834Z" },- { url = "https://files.pythonhosted.org/packages/8d/f4/4ce9a05ce5ded1de3ec1c1d96cf9f9504a04e54ce0ed55cfa38619a32b8d/mypy-1.19.1-py3-none-any.whl", hash = "sha256:f1235f5ea01b7db5468d53ece6aaddf1ad0b88d9e7462b86ef96fe04995d7247", size = 2471239, upload-time = "2025-12-15T05:03:07.248Z" },+ { url = "https://files.pythonhosted.org/packages/95/b1/55861beb5c339b44f9a2ba92df9e2cb1eeb4ae1eee674cdf7772c797778b/mypy-2.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:244358bf1c0da7722230bce60683d52e8e9fd030554926f15b747a84efb5b3af", size = 14874381, upload-time = "2026-05-11T18:37:31.784Z" },+ { url = "https://files.pythonhosted.org/packages/0b/b3/b7f770114b7d0ac92d0f76e8d93c2780844a70488a90e91821927850da86/mypy-2.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4ec7c57657493c7a75534df2751c8ae2cda383c16ecc55d2106c54476b1b16f6", size = 13665501, upload-time = "2026-05-11T18:34:23.063Z" },+ { url = "https://files.pythonhosted.org/packages/b6/f3/8ae2037967e2126689a0c11d99e2b707134a565191e92c60ca2572aec60a/mypy-2.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8161b6ff4392410023224f0969d17db93e1e154bc3e4ba62598e720723ae211", size = 14045750, upload-time = "2026-05-11T18:31:48.151Z" },+ { url = "https://files.pythonhosted.org/packages/a0/32/615eb5911859e43d054941b0d0a7d06cfa2870eba86529cf385b052b111c/mypy-2.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bf03e12003084a67395184d3eb8cbd6a489dc3655b5664b28c210a9e2403ab0b", size = 15061630, upload-time = "2026-05-11T18:37:06.898Z" },+ { url = "https://files.pythonhosted.org/packages/d4/03/4eafbfff8bfab1b87082741eae6e6a624028c984e6708b73bce2a8570c9d/mypy-2.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:20509760fd791c51579d573153407d226385ec1f8bcce55d730b354f3336bc22", size = 15288831, upload-time = "2026-05-11T18:31:18.07Z" },+ { url = "https://files.pythonhosted.org/packages/99/ee/919661478e5891a3c96e549c036e467e64563ab85995b10c53c8358e16a3/mypy-2.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:6753d0c1fdd6b1a23b9e4f283ce80b2153b724adcb2653b20b85a8a28ac6436b", size = 11135228, upload-time = "2026-05-11T18:34:31.23Z" },+ { url = "https://files.pythonhosted.org/packages/24/0a/6a12b9782ca0831a553192f351679f4548abc9d19a7cc93bb7feb02084c7/mypy-2.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:98ebb6589bb3b6d0c6f0c459d53ca55b8091fbc13d277c4041c885392e8195e8", size = 10040684, upload-time = "2026-05-11T18:36:48.199Z" },+ { url = "https://files.pythonhosted.org/packages/0d/2a/13ca1f292f6db1b98ff495ef3467736b331621c5917cad984b7043e7348d/mypy-2.1.0-py3-none-any.whl", hash = "sha256:a663814603a5c563fb87a4f96fb473eeb30d1f5a4885afcf44f9db000a366289", size = 2693302, upload-time = "2026-05-11T18:31:29.246Z" },][[package]]@@ -5646,7 +5673,7 @@ dev = [{ name = "hypothesis", specifier = "~=6.151.9" },{ name = "import-linter", specifier = "~=2.11" },{ name = "ipython", specifier = "~=9.3.0" },- { name = "mypy", specifier = "~=1.19.1" },+ { name = "mypy", specifier = "~=2.1.0" },{ name = "mypy-extensions", specifier = "~=1.1.0" },{ name = "openapi-spec-validator", specifier = "==0.7.1" },{ name = "orjson", specifier = "==3.11.6" },