5.2.3
·
8 commits
to master
since this release
Fixed
Models - Errors
- Python 3.14 annotation NameError on DI wire -
inspect.signatureno
longer raisesNameError: LanguageType is not definedwhen
dependency_injectorinspects error constructors.- Python 3.14 PEP 649 defers annotation evaluation in
__annotate__ TYPE_CHECKING-only names were missing from module globals at runtime- Added
from __future__ import annotationsso wiring sees string
annotations and does not evaluate them
- Python 3.14 PEP 649 defers annotation evaluation in
Adapters - Annotations
- Same 3.14 inspect.signature crash on adapter ports - SQLAlchemy,
Elasticsearch, email, Kafka, Temporal, Redis mocks, Parsian, and Saman IPG
callables withTYPE_CHECKING-only annotations now survivecontainer.wire().
Helpers - Annotations
- Same 3.14 inspect.signature crash on helpers and decorators - Error, JWT,
file, TOTP, Keycloak, datetime, and password utils, plus retry/timeout/cache/
singleton/atomic/deprecation/timing decorators, gRPC interceptors, and
FastAPIErrorResponseDTOno longerNameErrorduring signature inspection.
Tests
Tests - Errors
- Constructor inspectability BDD - Public
BaseErrorsubclasses are
asserted to resolveinspect.signaturewithoutNameError.