test: pin the return types of the client's get and filters overloads
tests/unit/sdk/test_client_overload_types.py pins the types that get() and filters() return when a protocol class is passed as kind, for InfrahubClient and InfrahubClientSync, including calls with several filter keyword arguments, an unpacked dict[str, Any] of filters, and raise_when_missing. ty checks the module through the existing ty check . lint step. A unit test runs mypy on it (--follow-imports=silent), because CI runs mypy only over infrahub_sdk/. No production code, dependency or CI workflow changes.
Widening the protocol overloads of filters() to list[Any], or of get() to Any, makes 6 assertions fail under each checker. Two get() calls are left unpinned and listed in the module docstring, because both checkers already resolve them to a type callers would not want: get(kind=P, **filters) returns Any, and get(kind=P, raise_when_missing=flag) with a bool variable returns P instead of P | None. The test imports mypy directly instead of skipping when it is missing, so the guard cannot switch itself off; CI installs it with --all-groups.
Tracked as INBOX-199; the question it answers was raised in review of #1218.
🤖 Generated with Claude Code