Skip to content

5.2.3

Choose a tag to compare

@HosseinNejatiJavaremi HosseinNejatiJavaremi released this 13 Sep 07:17
· 8 commits to master since this release

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.