Skip to content

Conversation

andystaples
Copy link
Collaborator

@andystaples andystaples commented Jun 3, 2025

Unfortunately, this very cool Callable syntax I had in the original unit testing PR is not compatible with the Python worker, as it uses typing.get_type_hints on whatever value t has for the user function, and get_type_hints does not work on class instances, even if those instances are Callables.

Reverting to the more primative approach, where we simply add the original user functions as properties on the wrapped methods, instead of a dedicated and documented class for now.

@andystaples andystaples merged commit 407ad57 into dev Jun 4, 2025
5 checks passed
@andystaples andystaples deleted the andystaples/unit-testing-compatible-with-worker branch June 4, 2025 20:59
greenie-msft pushed a commit to greenie-msft/azure-functions-durable-python that referenced this pull request Sep 25, 2025
* Update unit testing for compatibility with worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants