Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: can't pass whole body to Depends if original function has no args #75

Closed
Lancetnik opened this issue Feb 27, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@Lancetnik
Copy link
Owner

Original Issue: airtai/faststream#1271

Incorrect behavior:

from fast_depends import Depends, inject

def dep(a: str):
    return a
    
@inject
def func(result: str  = Depends(dep)):
    print(result)
 
func("test")
@Lancetnik Lancetnik added the bug Something isn't working label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant