Skip to content

Releases: amyasnikov/dimi

v1.5.0

Choose a tag to compare

@amyasnikov amyasnikov released this 12 Jan 17:42
  • Added support for Python 3.14

v1.4.0

Choose a tag to compare

@amyasnikov amyasnikov released this 18 Mar 16:10

New Features:

  • di.inject now explicitly sets __signature__ attribute of the underlying func. This new signature contains all the original function params except those having Annotated[...] type hint.

Example:

@di.inject
def func(p1: int, p2: Annnotated[str, some_dependency]): ...

assert inspect.signature(func).parameters.keys() == {"p1"}

v1.3.0

Choose a tag to compare

@amyasnikov amyasnikov released this 22 Oct 22:19

New Features:

  • Clear cache for cached values in case of override
  • add_return_alias option was added to di.dependency

v1.2.0

Choose a tag to compare

@amyasnikov amyasnikov released this 17 Oct 20:44

New Features:

  • Postponed syntax now is available for __getitem__ as well: di["some_dependency"]

v1.1.3

Choose a tag to compare

@amyasnikov amyasnikov released this 16 Aug 17:16

Bug Fixes:

  • Proper handling of non-type types (e.g. typing.Callable or generics like SomeType[int]) within typing.Annotated

v1.1.2

Choose a tag to compare

@amyasnikov amyasnikov released this 08 Aug 22:03

Bug Fixes:

  • Better handling of postponed annotations
  • Raising descriptive error in case of dependencies with the same name

v1.1.1

Choose a tag to compare

@amyasnikov amyasnikov released this 07 Aug 19:03

Bug Fixes:

  • Fix handling of postponed annotations

v1.1.0

Choose a tag to compare

@amyasnikov amyasnikov released this 06 Aug 20:25

New Features:

  • @di.inject now supports lazy string Annotations

v1.0.1

Choose a tag to compare

@amyasnikov amyasnikov released this 03 Aug 23:57

First public release