You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-06-03 14:49:12,214 ERROR - Invalid args for response field! Hint: check that <class 'mode.A'> is a valid pydantic field type
2023-06-03 14:49:12,214 ERROR - Please, input module like [python_file:propan_app_name]
And steps to reproduce the behavior:
Run the code
Expected behavior
More informative output, that tell something like "In the main.py file, on line 12, the argument 'a' has type A. It was expected to have type pydantic field and a default value of Depends or Context."
Environment
Running Propan 0.1.2.7 with CPython 3.10.10 on Linux
The text was updated successfully, but these errors were encountered:
I know that my function argument is incorrect, but issue about error messages: Invalid args for response field! - A is not response field, it is handler argument. If code base is big, this is hard to find there it is being used Please, input module like [python_file:propan_app_name] - I run it correct, why i get this?
Describe the bug
When I made a mistake specifying the argument type, I received an error.
To Reproduce
Add source code
Result:
And steps to reproduce the behavior:
Expected behavior
More informative output, that tell something like "In the main.py file, on line 12, the argument 'a' has type A. It was expected to have type pydantic field and a default value of Depends or Context."
Environment
Running Propan 0.1.2.7 with CPython 3.10.10 on Linux
The text was updated successfully, but these errors were encountered: