FastDepends
FastDepends copied to clipboard
#98 Fixed overriding variables.
def dep_func() -> int:
return 1
@inject
def some_func(a: int = Depends(dep_func)) -> int:
return a
print(some_func(a=2)) # 2
print(some_func(2)) # 2
Can you, please, revert docs/ and styles changes to let me check logic only?
Can you, please, revert
docs/and styles changes to let me check logic only?
@Lancetnik reset formatting, I had run ruff format before commit.