Location
client_discovery/config.py — load_and_validate_config() return annotation (~line 18)
Problem
The return type annotation is written as:
def load_and_validate_config() -> dict[str, any]:
any here is the Python builtin function, not typing.Any. As an annotation it is semantically incorrect — type checkers (mypy/pyright) and IDEs can't infer the intended "any value" meaning, and it will confuse readers.
Fix
Either:
from typing import Any
def load_and_validate_config() -> dict[str, Any]:
or a more precise type such as dict[str, object].
Source
Originally raised in review of PR #21 (now docs-only): outdated thread PRRT_kwDOSzLAqc6JYBhT. Confirmed still present on main.
/tracked-issue
Location
client_discovery/config.py—load_and_validate_config()return annotation (~line 18)Problem
The return type annotation is written as:
anyhere is the Python builtin function, nottyping.Any. As an annotation it is semantically incorrect — type checkers (mypy/pyright) and IDEs can't infer the intended "any value" meaning, and it will confuse readers.Fix
Either:
or a more precise type such as
dict[str, object].Source
Originally raised in review of PR #21 (now docs-only): outdated thread
PRRT_kwDOSzLAqc6JYBhT. Confirmed still present onmain./tracked-issue