2.3.0
What's Changed
- Multiple
Annotated
arguments support:from typing import Annotated from annotated_types import Ge from pydantic.functional_validators import AfterValidator @inject() def f(a: Annotated[int, Ge(10), AfterValidator(lambda x: x + 10)]) -> int: return a assert f(10) == 20
- Support correct Generator annotation
@inject def simple_func(a: str) -> Iterator[int]: for _ in range(2): yield a for i in simple_func("1"): assert i == 1
- solve async dependencies without subdependencies in parallel tasks
- solve
CustomField
with asyncuse_field
in parallel - build(deps-dev): bump ruff from 0.1.9 to 0.1.11 by @dependabot in #56
- get rid of protected objects by @VitailOG in #57
- feat: parallel dependencies resolving by @Lancetnik in #58
New Contributors
Full Changelog: 2.2.8...2.3.0