Skip to content

[#9807] contextvars support for Deferred#1262

Draft
hawkowl wants to merge 5 commits intotrunkfrom
9807-contextvars-deferred
Draft

[#9807] contextvars support for Deferred#1262
hawkowl wants to merge 5 commits intotrunkfrom
9807-contextvars-deferred

Conversation

@hawkowl
Copy link
Member

@hawkowl hawkowl commented May 6, 2020

return self._context


def setContext(self, context: _Context) -> NoReturn:

Choose a reason for hiding this comment

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

Why does this never return? The self._context = context bit runs at the end of the function, after which it implicitly returns (None).

Should this maybe be Optional[NoReturn]? If that even affects anything.

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