Skip to content

Conversation

@cretz
Copy link
Member

@cretz cretz commented Oct 26, 2022

What was changed

No big changes. Moved code around so that argument and return type hints are on the workflow, signal, query, and activity definitions instead of obtained as needed with a global cache.

Why?

Global cache not only was unnecessary since most of these are preloaded into definitions anyways, but #159 showed we don't have a good cache key for functions anyways

Checklist

  1. Closes [Bug] Function type hint lookup cache key is bad #159

@cretz cretz requested a review from a team October 26, 2022 22:12
…hinting

# Conflicts:
#	temporalio/workflow.py
@cretz cretz merged commit 5259f4c into temporalio:main Oct 28, 2022
@cretz cretz deleted the improve-type-hinting branch October 28, 2022 16:50
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.

[Bug] Function type hint lookup cache key is bad

2 participants