error[invalid-argument-type]: Argument to function `_registration_kst_timestamp` is incorrect --> checkin_cli/customer_admin.py:150:60 | 150 | "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:2117:5 | 2117 | 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:605:9 | 605 | 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:362:5 | 362 | def _require_opaque_id( | ^^^^^^^^^^^^^^^^^^ 363 | 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:628:13 | 628 | 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:629:13 | 629 | 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:1854:13 | 1854 | 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:2320:13 | 2320 | document.get("customer_key") != customer_key | ^^^^^^^^^^^^ error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2321:16 | 2321 | or document.get("digest") != revision_digest | ^^^^^^^^^^^^ error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2324:12 | 2324 | if document.get("supersedes_digest") != supersedes: | ^^^^^^^^^^^^ error[unresolved-attribute]: Object of type `object` has no attribute `get` --> checkin_cli/customer_admin.py:2328:12 | 2328 | if document.get("authority_digest") != authority_digest: | ^^^^^^^^^^^^ error[no-matching-overload]: No overload of `dict.__init__` matches arguments --> checkin_cli/customer_admin.py:2332:28 | 2332 | 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:2622:29 | 2622 | "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:2623:35 | 2623 | "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:2624:27 | 2624 | "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:2632:26 | 2632 | 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:2722:12 | 2722 | return ( | ____________^ 2723 | | ("base_policy", policy_document, policy_version, policy_digest), 2724 | | ( 2725 | | "meal_constraints", 2726 | | constraints_document, 2727 | | constraints_version, 2728 | | constraints_digest, 2729 | | ), 2730 | | ("catalog", catalog_document, catalog_version, catalog_digest), 2731 | | ) | |_____^ 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:2656:6 | 2656 | ) -> 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:2818:13 | 2818 | row["artifact_document"], | ^^^^^^^^^^^^^^^^^^^^^^^^ Expected `Mapping[str, object]`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:2526:5 | 2526 | def _registration_artifact_value( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2527 | document: Mapping[str, object], | ------------------------------ Parameter declared here error[invalid-argument-type]: Argument to function `_registration_kst_timestamp` is incorrect --> checkin_cli/customer_admin.py:2828:37 | 2828 | _registration_kst_timestamp(row["approved_at_kst"]) | ^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:2117:5 | 2117 | 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:3065:21 | 3065 | prepared_digest=prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:2734:5 | 2734 | def _registration_approval_row( | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:2750:5 | 2750 | prepared_digest: str | None, | --------------------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_config_row` is incorrect --> checkin_cli/customer_admin.py:3474:17 | 3474 | prepared_digest=config_prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:3394:5 | 3394 | def _registration_config_row( | ^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:3400:5 | 3400 | prepared_digest: str | None, | --------------------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_revision_row` is incorrect --> checkin_cli/customer_admin.py:3522:13 | 3522 | prepared_digest=prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:3362:5 | 3362 | def _registration_revision_row( | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:3368:5 | 3368 | prepared_digest: str | None, | --------------------------- Parameter declared here error[invalid-argument-type]: Argument to function `_registration_config_row` is incorrect --> checkin_cli/customer_admin.py:3577:17 | 3577 | prepared_digest=config_prepared["row_digest"], | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected `str | None`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:3394:5 | 3394 | def _registration_config_row( | ^^^^^^^^^^^^^^^^^^^^^^^^ | ::: checkin_cli/customer_admin.py:3400:5 | 3400 | prepared_digest: str | None, | --------------------------- Parameter declared here error[no-matching-overload]: No overload of `dict.__init__` matches arguments --> checkin_cli/customer_admin.py:3841:24 | 3841 | 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:4046:40 | 4046 | "derived_constraints": dict( | ________________________________________^ 4047 | | _registration_artifact_value(bundle[1][1], "meal_constraints") 4048 | | ), | |_________________^ 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:4435:17 | 4435 | 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:3076:5 | 3076 | def _registration_latest_approvals( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3077 | rows: list[dict[str, object]], 3078 | customer_key: str, 3079 | registration_digest: str, | ------------------------ Parameter declared here error[invalid-argument-type]: Argument to class `tuple` is incorrect --> checkin_cli/customer_admin.py:4540:30 | 4540 | 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:4652:34 | 4652 | 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:4816:22 | 4816 | 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:4817:45 | 4817 | or row.get("customer_state") != expected_config_states[expected_state] | ^^^^^^^^^^^^^^^^^^^^^^ error[unsupported-operator]: Unsupported `>=` operation --> checkin_cli/customer_admin.py:4838:17 | 4838 | 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:4845:13 | 4845 | 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:4847:13 | 4847 | 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:4850:9 | 4850 | 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:4919:35 | 4919 | 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:4944:31 | 4944 | 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:5799:26 | 5799 | import yaml # type: ignore | ^^^^^^^^^^^^^^ help: Remove the unused suppression comment | 5798 | try: - import yaml # type: ignore 5799 + import yaml 5800 | except ImportError: | error[invalid-return-type]: Return type does not match returned value --> checkin_cli/customer_admin.py:5839:12 | 5839 | 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:5828:42 | 5828 | 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:6511:13 | 6511 | telegram_extra, | ^^^^^^^^^^^^^^ Expected `Mapping[str, object]`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:6092:5 | 6092 | def _preflight_config_routes( | ^^^^^^^^^^^^^^^^^^^^^^^^ 6093 | config: Mapping[str, object], 6094 | telegram: Mapping[str, object], 6095 | 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:6526:13 | 6526 | telegram_extra, | ^^^^^^^^^^^^^^ Expected `Mapping[str, object]`, found `object` info: Function defined here --> checkin_cli/customer_admin.py:6092:5 | 6092 | def _preflight_config_routes( | ^^^^^^^^^^^^^^^^^^^^^^^^ 6093 | config: Mapping[str, object], 6094 | telegram: Mapping[str, object], 6095 | telegram_extra: Mapping[str, object], | ------------------------------------ Parameter declared here error[invalid-argument-type]: Argument to constructor `int.__new__` is incorrect --> checkin_cli/customer_admin.py:6582:40 | 6582 | 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