Skip to content

5.2.3 — 2026-09-13

← 5.2.4 | 5.2.2 → | ↑ 5.x series

Fixed

Models - Errors

  • Python 3.14 annotation NameError on DI wire - inspect.signature no longer raises NameError: LanguageType is not defined when dependency_injector inspects 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 annotations so wiring sees string annotations and does not evaluate them

Adapters - Annotations

  • Same 3.14 inspect.signature crash on adapter ports - SQLAlchemy, Elasticsearch, email, Kafka, Temporal, Redis mocks, Parsian, and Saman IPG callables with TYPE_CHECKING-only annotations now survive container.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 FastAPIErrorResponseDTO no longer NameError during signature inspection.

Tests

Tests - Errors

  • Constructor inspectability BDD - Public BaseError subclasses are asserted to resolve inspect.signature without NameError.