-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typing] prefect.tasks
and prefect.task_worker
#16332
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #16332 will not alter performanceComparing Summary
|
1e13b8e
to
e04574a
Compare
whaaaa thank you fix secret block description
e04574a
to
dd4340d
Compare
@@ -362,7 +388,7 @@ async def __aenter__(self): | |||
self._started_at = pendulum.now() | |||
return self | |||
|
|||
async def __aexit__(self, *exc_info): | |||
async def __aexit__(self, *exc_info: Any): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot the return annotation 😀
async def __aexit__(self, *exc_info: Any): | |
async def __aexit__(self, *exc_info: Any) -> Optional[bool] |
Or just None or bool as applicable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, maybe I'm missing your point but this __aexit__
doesn't return
hide isinstance
3f3c464
to
199a165
Compare
related to #16292
fixes a circular import problem related to imports of
Task
inasync_dispatch
some assorted other fixes to pass the check