error[invalid-argument-type]: Argument to function `_registration_kst_timestamp` is incorrect --> checkin_cli/customer_admin.py:155:60 | 155 | "approved_at_kst": _registration_kst_timestamp(approved_at_kst), | ^^^^^^^^^^^^^^^ Expected `str | None`, found `str | datetime | None` info: element `datetime` of union `str | datetime | None` is not assignable to `str | None` info: Function defined here --> checkin_cli/customer_admin.py:2122:5 | 2122 | def _registration_kst_timestamp(value: str | None) -> str: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------- Parameter declared here error[invalid-argument-type]: Argument to function `_require_opaque_id` is incorrect --> checkin_cli/customer_admin.py:610:9 | 610 | supersedes_entry_id, | ^^^^^^^^^^^^^^^^^^^ Expected `str`, found `str | None` info: element `None` of union `str | None` is not assignable to `str` info: Function defined here --> checkin_cli/customer_admin.py:367:5 | 367 | def _require_opaque_id( | ^^^^^^^^^^^^^^^^^^ 368 | value: str, field_name: str, *, optional: bool = False | ---------- Parameter declared here error[invalid-argument-type]: Argument to bound method `EventStore.record_operator_time` is incorrect --> checkin_cli/customer_admin.py:633:13 | 633 | entry_id=entry, | ^^^^^^^^^^^^^^ Expected `str`, found `str | None` info: element `None` of union `str | None` is not assignable to `str` info: Method defined here --> checkin_cli/store.py:1013:9 | 1013 | def record_operator_time( | ^^^^^^^^^^^^^^^^^^^^ 1014 | self, 1015 | customer_key: str, 1016 | *, 1017 | entry_id: str, | ------------- Parameter declared here error[invalid-argument-type]: Argument to bound method `EventStore.record_operator_time` is incorrect --> checkin_cli/customer_admin.py:634:13 | 634 | attempt_id=attempt, | ^^^^^^^^^^^^^^^^^^ Expected `str`, found `str | None` info: element `None` of union `str | None` is not assignable to `str` info: Method defined here --> checkin_cli/store.py:1013:9 | 1013 | def record_operator_time( | ^^^^^^^^^^^^^^^^^^^^ 1014 | self, 1015 | customer_key: str, 1016 | *, 1017 | entry_id: str, 1018 | attempt_id: str, | --------------- Parameter declared here error[invalid-argument-type]: Argument to function `validate_legacy_activation_authority` is incorrect --> checkin_cli/customer_admin.py:1859:13 | 1859 | manifest, | ^^^^^^^^ Expected `dict[str, str]`, found `dict[str, object]` info: Function defined here --> checkin_cli/nutrition_onboarding_projection.py:177:5 | 177 | def validate_legacy_activation_authority( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 178 | manifest: dict[str, str], | ------------------------ Parameter declared here error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2325:13 | 2325 | document.get("customer_key") != customer_key | ^^^^^^^^^^^^ error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2326:16 | 2326 | or document.get("digest") != revision_digest | ^^^^^^^^^^^^ error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2329:12 | 2329 | if document.get("supersedes_digest") != supersedes: | ^^^^^^^^^^^^ error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2333:12 | 2333 | if document.get("authority_digest") != authority_digest: | ^^^^^^^^^^^^ error[no-matching-overload]: No overload of `dict.__init__` matches arguments --> checkin_cli/customer_admin.py:2337:28 | 2337 | if adaptive_digest(dict(row["authority"])) != authority_digest: | ^^^^^^^^^^^^^^^^^^^^^^ info: First overload defined here --> stdlib/builtins.pyi:3104:5 | 3104 | / @overload 3105 | | def __init__(self, /) -> None: ... | |______________________________________^ First overload defined here info: Possible overloads for bound method `__init__`: info: (self, /) -> None info: (self: dict[str, _VT@dict], /, **kwargs: _VT@dict) -> None info: (self, map: SupportsKeysAndGetItem[_KT@dict, _VT@dict], /) -> None info: (self: dict[str, _VT@dict], map: SupportsKeysAndGetItem[str, _VT@dict], /, **kwargs: _VT@dict) -> None info: (self, iterable: Iterable[tuple[_KT@dict, _VT@dict]], /) -> None info: (self: dict[str, _VT@dict], iterable: Iterable[tuple[str, _VT@dict]], /, **kwargs: _VT@dict) -> None info: (self: dict[str, str], iterable: Iterable[list[str]], /) -> None info: (self: dict[bytes, bytes], iterable: Iterable[list[bytes]], /) -> None error[invalid-argument-type]: Argument to `list.__init__` is incorrect --> checkin_cli/customer_admin.py:2627:29 | 2627 | "preferences": list(payload["preferences"]), | ^^^^^^^^^^^^^^^^^^^^^^ Expected `Iterable[Unknown]`, found `object` info: type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` info: Matching overload defined here --> stdlib/builtins.pyi:2976:9 | 2976 | def __init__(self, iterable: Iterable[_T], /) -> None: ... | ^^^^^^^^ ---------------------- Parameter declared here info: Non-matching overloads for bound method `__init__`: info: (self) -> None error[invalid-argument-type]: Argument to `list.__init__` is incorrect --> checkin_cli/customer_admin.py:2628:35 | 2628 | "excluded_food_ids": list(payload["exclusions"]), | ^^^^^^^^^^^^^^^^^^^^^ Expected `Iterable[Unknown]`, found `object` info: type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` info: Matching overload defined here --> stdlib/builtins.pyi:2976:9 | 2976 | def __init__(self, iterable: Iterable[_T], /) -> None: ... | ^^^^^^^^ ---------------------- Parameter declared here info: Non-matching overloads for bound method `__init__`: info: (self) -> None error[invalid-argument-type]: Argument to `list.__init__` is incorrect --> checkin_cli/customer_admin.py:2629:27 | 2629 | "allergies": list(payload["allergies"]), | ^^^^^^^^^^^^^^^^^^^^ Expected `Iterable[Unknown]`, found `object` info: type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` info: Matching overload defined here --> stdlib/builtins.pyi:2976:9 | 2976 | def __init__(self, iterable: Iterable[_T], /) -> None: ... | ^^^^^^^^ ---------------------- Parameter declared here info: Non-matching overloads for bound method `__init__`: info: (self) -> None error[not-iterable]: Object of type `object` is not iterable --> checkin_cli/customer_admin.py:2637:26 | 2637 | for entry in payload["training_schedule"] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ info: It doesn't have an `__iter__` method or a `__getitem__` method error[invalid-return-type]: Return type does not match returned value --> checkin_cli/customer_admin.py:2727:12 | 2727 | return ( | ____________^ 2728 | | ("base_policy", policy_document, policy_version, policy_digest), 2729 | | ( 2730 | | "meal_constraints", 2731 | | constraints_document, 2732 | | constraints_version, 2733 | | constraints_digest, 2734 | | ), 2735 | | ("catalog", catalog_document, catalog_version, catalog_digest), 2736 | | ) | |_____^ expected `tuple[tuple[str, dict[str, object], str, str], ...]`, found `tuple[tuple[Literal["base_policy"], Mapping[str, object], str, str], tuple[Literal["meal_constraints"], dict[str, object], str, str], tuple[Literal["catalog"], Mapping[str, object], str, str]]` | ::: checkin_cli/customer_admin.py:2661:6 | 2661 | ) -> tuple[tuple[str, dict[str, object], str, str], ...]: | --------------------------------------------------- Expected `tuple[tuple[str, dict[str, object], str, str], ...]` because of return type info: the second tuple element is not compatible: `Mapping[str, object]` is not assignable to `dict[str, object]` error[invalid-argument-type]: Argument to function `_registration_artifact_value` is incorrect --> checkin_cli/customer_admin.py:2823:13 | 2823 | row["artifact_document"], | ^^^^^^^^^^^^^^^^^^^^^^^^ Expected `Mapping[str, object]`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:2531:5 | 2531 | def _registration_artifact_value( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2532 | document: Mapping[str, object], | ------------------------------ Parameter declared here error[invalid-argument-type]: Argument to function `_registration_kst_timestamp` is incorrect --> checkin_cli/customer_admin.py:2833:37 | 2833 | _registration_kst_timestamp(row["approved_at_kst"]) | ^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:2122:5 | 2122 | def _registration_kst_timestamp(value: str | None) -> str: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_approval_row` is incorrect --> checkin_cli/customer_admin.py:3070:21 | 3070 | prepared_digest=prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:2739:5 | 2739 | def _registration_approval_row( | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:2755:5 | 2755 | prepared_digest: str | None, | --------------------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_config_row` is incorrect --> checkin_cli/customer_admin.py:3479:17 | 3479 | prepared_digest=config_prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:3399:5 | 3399 | def _registration_config_row( | ^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:3405:5 | 3405 | prepared_digest: str | None, | --------------------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_revision_row` is incorrect --> checkin_cli/customer_admin.py:3527:13 | 3527 | prepared_digest=prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:3367:5 | 3367 | def _registration_revision_row( | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:3373:5 | 3373 | prepared_digest: str | None, | --------------------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_config_row` is incorrect --> checkin_cli/customer_admin.py:3582:17 | 3582 | prepared_digest=config_prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:3399:5 | 3399 | def _registration_config_row( | ^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:3405:5 | 3405 | prepared_digest: str | None, | --------------------------- Parameter declared here error[no-matching-overload]: No overload of `dict.__init__` matches arguments --> checkin_cli/customer_admin.py:3846:24 | 3846 | artifact_kind: dict(row["artifact_document"]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ info: First overload defined here --> stdlib/builtins.pyi:3104:5 | 3104 | / @overload 3105 | | def __init__(self, /) -> None: ... | |______________________________________^ First overload defined here info: Possible overloads for bound method `__init__`: info: (self, /) -> None info: (self: dict[str, _VT@dict], /, **kwargs: _VT@dict) -> None info: (self, map: SupportsKeysAndGetItem[_KT@dict, _VT@dict], /) -> None info: (self: dict[str, _VT@dict], map: SupportsKeysAndGetItem[str, _VT@dict], /, **kwargs: _VT@dict) -> None info: (self, iterable: Iterable[tuple[_KT@dict, _VT@dict]], /) -> None info: (self: dict[str, _VT@dict], iterable: Iterable[tuple[str, _VT@dict]], /, **kwargs: _VT@dict) -> None info: (self: dict[str, str], iterable: Iterable[list[str]], /) -> None info: (self: dict[bytes, bytes], iterable: Iterable[list[bytes]], /) -> None error[no-matching-overload]: No overload of `dict.__init__` matches arguments --> checkin_cli/customer_admin.py:4051:40 | 4051 | "derived_constraints": dict( | ________________________________________^ 4052 | | _registration_artifact_value(bundle[1][1], "meal_constraints") 4053 | | ), | |_________________^ info: First overload defined here --> stdlib/builtins.pyi:3104:5 | 3104 | / @overload 3105 | | def __init__(self, /) -> None: ... | |______________________________________^ First overload defined here info: Possible overloads for bound method `__init__`: info: (self, /) -> None info: (self: dict[str, _VT@dict], /, **kwargs: _VT@dict) -> None info: (self, map: SupportsKeysAndGetItem[_KT@dict, _VT@dict], /) -> None info: (self: dict[str, _VT@dict], map: SupportsKeysAndGetItem[str, _VT@dict], /, **kwargs: _VT@dict) -> None info: (self, iterable: Iterable[tuple[_KT@dict, _VT@dict]], /) -> None info: (self: dict[str, _VT@dict], iterable: Iterable[tuple[str, _VT@dict]], /, **kwargs: _VT@dict) -> None info: (self: dict[str, str], iterable: Iterable[list[str]], /) -> None info: (self: dict[bytes, bytes], iterable: Iterable[list[bytes]], /) -> None error[invalid-argument-type]: Argument to function `_registration_latest_approvals` is incorrect --> checkin_cli/customer_admin.py:4440:17 | 4440 | current.digest, | ^^^^^^^^^^^^^^ Expected `str`, found `str | None` info: element `None` of union `str | None` is not assignable to `str` info: Function defined here --> checkin_cli/customer_admin.py:3081:5 | 3081 | def _registration_latest_approvals( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3082 | rows: list[dict[str, object]], 3083 | customer_key: str, 3084 | registration_digest: str, | ------------------------ Parameter declared here error[invalid-argument-type]: Argument to class `tuple` is incorrect --> checkin_cli/customer_admin.py:4545:30 | 4545 | supplied = tuple(source_values) # type: ignore[arg-type] | ^^^^^^^^^^^^^ Expected `Iterable[Unknown]`, found `~None & ~Top[Mapping[Unknown, object]]` info: no element of intersection `~None & ~Top[Mapping[Unknown, object]]` is assignable to `Iterable[Unknown]` info: └── type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` error[invalid-argument-type]: Argument to class `tuple` is incorrect --> checkin_cli/customer_admin.py:4657:34 | 4657 | return adaptive_digest(tuple(rows)) | ^^^^ Expected `Iterable[Unknown]`, found `object` info: type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` error[invalid-argument-type]: Argument to class `tuple` is incorrect --> checkin_cli/customer_admin.py:4821:22 | 4821 | or tuple(row.get("customer_keys", ())) != enabled_keys | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `Iterable[Unknown]`, found `object` info: type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` error[invalid-argument-type]: Method `__getitem__` of type `bound method dict[str, dict[str, str]].__getitem__(key: str, /) -> dict[str, str]` cannot be called with key of type `object` on object of type `dict[str, dict[str, str]]` --> checkin_cli/customer_admin.py:4822:45 | 4822 | or row.get("customer_state") != expected_config_states[expected_state] | ^^^^^^^^^^^^^^^^^^^^^^ error[unsupported-operator]: Unsupported `>=` operation --> checkin_cli/customer_admin.py:4843:17 | 4843 | and existing["writer_epoch"] >= 0 | ------------------------^^^^- | | | | | Has type `Literal[0]` | Has type `object` error[invalid-argument-type]: Argument to bound method `AdaptiveEventStore.append_source_day_mapping` is incorrect --> checkin_cli/customer_admin.py:4850:13 | 4850 | observation_kst_day=plan["observation_kst_day"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `date | str`, found `object` info: Method defined here --> checkin_cli/adaptive_nutrition.py:5647:9 | 5647 | def append_source_day_mapping( | ^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/adaptive_nutrition.py:5653:9 | 5653 | observation_kst_day: date | str, | ------------------------------- Parameter declared here error[invalid-argument-type]: Argument to bound method `AdaptiveEventStore.append_source_day_mapping` is incorrect --> checkin_cli/customer_admin.py:4852:13 | 4852 | writer_epoch=mapping_epoch, | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `int`, found `object` info: Method defined here --> checkin_cli/adaptive_nutrition.py:5647:9 | 5647 | def append_source_day_mapping( | ^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/adaptive_nutrition.py:5655:9 | 5655 | writer_epoch: int = 0, | --------------------- Parameter declared here error[invalid-assignment]: Invalid subscript assignment with key of type `str` and value of type `Mapping[str, object]` on object of type `dict[str, dict[str, object]]` --> checkin_cli/customer_admin.py:4855:9 | 4855 | mappings_by_event[str(plan["root_event_id"])] = mapping | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------- | | | Expected value of type `dict[str, object]`, got `Mapping[str, object]` error[invalid-argument-type]: Argument to constructor `int.__new__` is incorrect --> checkin_cli/customer_admin.py:4924:35 | 4924 | adaptive_sequence=int(authority_payload["adaptive_sequence"]), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `object` info: type `object` is not assignable to any element of the union `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc` info: ├── type `object` is not assignable to protocol `Buffer` info: │ └── protocol member `__buffer__` is not defined on type `object` info: ├── type `object` is not assignable to protocol `SupportsInt` info: │ └── protocol member `__int__` is not defined on type `object` info: ├── type `object` is not assignable to protocol `SupportsIndex` info: │ └── protocol member `__index__` is not defined on type `object` info: ├── type `object` is not assignable to protocol `SupportsTrunc` info: │ └── protocol member `__trunc__` is not defined on type `object` info: └── ... omitted 1 union element without additional context info: Matching overload defined here --> stdlib/builtins.pyi:369:9 | 369 | def __new__(cls, x: ConvertibleToInt = 0, /) -> Self: ... | ^^^^^^^ ----------------------- Parameter declared here info: Non-matching overloads for function `__new__`: info: [Self](cls, x: str | bytes | bytearray, /, base: SupportsIndex) -> Self error[invalid-argument-type]: Argument to class `tuple` is incorrect --> checkin_cli/customer_admin.py:4949:31 | 4949 | observed_keys = tuple(row.get("customer_keys", ())) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `Iterable[Unknown]`, found `object` info: type `object` is not assignable to protocol `Iterable[Unknown]` info: └── protocol member `__iter__` is not defined on type `object` warning[unused-type-ignore-comment]: Unused blanket `type: ignore` directive --> checkin_cli/customer_admin.py:5819:26 | 5819 | import yaml # type: ignore | ^^^^^^^^^^^^^^ help: Remove the unused suppression comment | 5818 | try: - import yaml # type: ignore 5819 + import yaml 5820 | except ImportError: | error[invalid-return-type]: Return type does not match returned value --> checkin_cli/customer_admin.py:5859:12 | 5859 | return values # type: ignore[return-value] | ^^^^^^ expected `tuple[str, str, str] | None`, found `tuple[str | (Unknown & ~int) | None | (Unknown & bool), ...]` | ::: checkin_cli/customer_admin.py:5848:42 | 5848 | def _preflight_address(value: object) -> tuple[str, str, str] | None: | --------------------------- Expected `tuple[str, str, str] | None` because of return type error[invalid-argument-type]: Argument to function `_preflight_config_routes` is incorrect --> checkin_cli/customer_admin.py:6531:13 | 6531 | telegram_extra, | ^^^^^^^^^^^^^^ Expected `Mapping[str, object]`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:6112:5 | 6112 | def _preflight_config_routes( | ^^^^^^^^^^^^^^^^^^^^^^^^ 6113 | config: Mapping[str, object], 6114 | telegram: Mapping[str, object], 6115 | telegram_extra: Mapping[str, object], | ------------------------------------ Parameter declared here error[invalid-argument-type]: Argument to function `_preflight_config_routes` is incorrect --> checkin_cli/customer_admin.py:6546:13 | 6546 | telegram_extra, | ^^^^^^^^^^^^^^ Expected `Mapping[str, object]`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:6112:5 | 6112 | def _preflight_config_routes( | ^^^^^^^^^^^^^^^^^^^^^^^^ 6113 | config: Mapping[str, object], 6114 | telegram: Mapping[str, object], 6115 | telegram_extra: Mapping[str, object], | ------------------------------------ Parameter declared here error[invalid-argument-type]: Argument to constructor `int.__new__` is incorrect --> checkin_cli/customer_admin.py:6602:40 | 6602 | legacy_topic = int(adaptive["operator_topic_id"]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `object` info: type `object` is not assignable to any element of the union `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc` info: ├── type `object` is not assignable to protocol `Buffer` info: │ └── protocol member `__buffer__` is not defined on type `object` info: ├── type `object` is not assignable to protocol `SupportsInt` info: │ └── protocol member `__int__` is not defined on type `object` info: ├── type `object` is not assignable to protocol `SupportsIndex` info: │ └── protocol member `__index__` is not defined on type `object` info: ├── type `object` is not assignable to protocol `SupportsTrunc` info: │ └── protocol member `__trunc__` is not defined on type `object` info: └── ... omitted 1 union element without additional context info: Matching overload defined here --> stdlib/builtins.pyi:369:9 | 369 | def __new__(cls, x: ConvertibleToInt = 0, /) -> Self: ... | ^^^^^^^ ----------------------- Parameter declared here info: Non-matching overloads for function `__new__`: info: [Self](cls, x: str | bytes | bytearray, /, base: SupportsIndex) -> Self Found 39 diagnostics