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: CustomFields can mix up arguments #112

Closed
Lancetnik opened this issue Jul 12, 2024 · 0 comments
Closed

bug: CustomFields can mix up arguments #112

Lancetnik opened this issue Jul 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lancetnik
Copy link
Owner

Lancetnik commented Jul 12, 2024

Source Issue: airtai/faststream#1558

The following native FastDepends sometimes failures and reproduces the problem above

from fast_depends import inject
from fast_depends.library import CustomField

@inject
def func(
    b: int = CustomField(),
    a: int = CustomField(),
):
    assert b == 2
    assert a == 1

func(2, 1)
@Lancetnik Lancetnik added the bug Something isn't working label Jul 12, 2024
Lancetnik added a commit that referenced this issue Sep 5, 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