-
Notifications
You must be signed in to change notification settings - Fork 70
Wrong return type on create_timer() #587
Copy link
Copy link
Open
Labels
DebuggabilityExperience problem debugging code.Experience problem debugging code.P2Priority 2Priority 2bugSomething isn't workingSomething isn't workingfixed-in-v2Fixed in azure-functions-durable 2.xFixed in azure-functions-durable 2.x
Description
Activity
Metadata
Metadata
Assignees
Labels
DebuggabilityExperience problem debugging code.Experience problem debugging code.P2Priority 2Priority 2bugSomething isn't workingSomething isn't workingfixed-in-v2Fixed in azure-functions-durable 2.xFixed in azure-functions-durable 2.x
🐛 Describe the bug
Type hint for return value of
create_timer()isTaskBase, but that does not contain thecancel()function.ReturningTimerTaskseems more appropiate.Edit: See comment below on why
TimerTaskmight not be a viable type anywayCurrent source:
azure-functions-durable-python/azure/durable_functions/models/DurableOrchestrationContext.py
Line 601 in 4ab004b
Example code:
🤔 Expected behavior
You should be able to call
cancel()without linter/type checker errors.☕ Steps to reproduce
See above