Skip to content

Conversation

@andystaples
Copy link
Contributor

No description provided.

@andystaples
Copy link
Contributor Author

andystaples commented Jan 8, 2026

I think we need to continue to use Task for create_timer, so that we can add LongTimerTask as we did in https://github.com/Azure/azure-functions-durable-python/pull/532/files - see #101 - otherwise, LongTimerTask would need to inherit from TimerTask
Edit: Resolved

@andystaples andystaples merged commit 1939eea into main Jan 8, 2026
20 checks passed
@andystaples andystaples deleted the andystaples/narrow-task-return-typing branch January 8, 2026 20:06
entity: EntityInstanceId,
operation: str,
input: Optional[TInput] = None) -> Task:
input: Optional[TInput] = None) -> CompletableTask:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this also have been CompletableTask[TOutput]?

Suggested change
input: Optional[TInput] = None) -> CompletableTask:
input: Optional[TInput] = None) -> CompletableTask[TOutput]:

# not received within the specified timeout. This requires support for task cancellation.
@abstractmethod
def wait_for_external_event(self, name: str) -> Task:
def wait_for_external_event(self, name: str) -> CompletableTask:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly (here and other places in the changes)

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.

4 participants