Skip to content

2.4.5

Compare
Choose a tag to compare
@Lancetnik Lancetnik released this 11 Jul 10:47
· 20 commits to main since this release
c190b28

What's Changed

Now CustomField respects function default value at required=False case

from typing_extensions import Annotated

from fast_depends import inject
from fast_depends.library import CustomField

@inject
def func(
    a: Annotated[int, CustomField(cast=False, required=False)] = 1
):
    assert a == 1  # `a` was `None` before

func()
  • build(deps): bump dawidd6/action-download-artifact from 3.1.4 to 5 by @dependabot in #101
  • fix: respect default with custom by @Lancetnik in #111

Full Changelog: 2.4.4...2.4.5