How to fix "ImproperlyConfiguredException: 'args' does not have a type annotation"? #3014
Replies: 1 comment 3 replies
-
This might be a naive question to a regular user of "Azure Durable Functions", but I checked https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-python-vscode?tabs=macos%2Cazure-cli-set-indexing-flag&pivots=python-mode-decorators and I fail to see anything related to a web app. Can you clarify to me (and maybe others) how an asgi app comes into play with Durable functions? On a side note, I did a cursory search and came across https://learn.microsoft.com/en-us/samples/azure-samples/fastapi-on-azure-functions/azure-functions-python-create-fastapi-app/ which seems to work for asgi apps in general, but I don't know if that is what you want |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I try to write an Azure Durable Function based on LiteStar. I'm using the Azure Durable Functions SDK for that. To use the Durable Functions client, you add a decorator to a function and set the client name. Through the decorator, the client is then passed as an argument to the function. I don't understand the details, but this is how that looks like:
The problem is, once I add the decorator, the following exception is raised:
I don't exactly know why, but I assume it is because the decorator changes the function so it has arguments without proper type hinting. How do I solve this without changing any code on the Durable Functions SDK?
Beta Was this translation helpful? Give feedback.
All reactions