Fix mypy: add type parameters to _LenientDict base class

Change `class _LenientDict(dict)` to `class _LenientDict(dict[str, Any])`
to satisfy mypy [type-arg] check.

Made-with: Cursor
This commit is contained in:
ahsan.sheraz 2026-03-11 16:22:28 +01:00
parent bba0d61092
commit 69ae2641cc
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ def get_typed_signature(call: Callable[..., Any]) -> inspect.Signature:
return typed_signature
class _LenientDict(dict):
class _LenientDict(dict[str, Any]):
"""Dict subclass where missing keys resolve to Any.
Used as an eval namespace so that undefined forward references (e.g. a