Skip to content

Extend type forwarding to other context managers#903

Merged
csmarchbanks merged 2 commits intoprometheus:masterfrom
crutcher:crutcher-context_manager_types
Mar 21, 2023
Merged

Extend type forwarding to other context managers#903
csmarchbanks merged 2 commits intoprometheus:masterfrom
crutcher:crutcher-context_manager_types

Conversation

@crutcher
Copy link
Contributor

It would be really nice to be able to use the various decorators without losing the type information of the decorated method.

Crutcher Dunnavant added 2 commits March 21, 2023 11:24
Signed-off-by: Crutcher Dunnavant <crutcher@openai.com>
Signed-of-by: Crutcher Dunnavant <crutcher@gmail.com>

Signed-off-by: Crutcher Dunnavant <crutcher@openai.com>
Copy link
Member

@csmarchbanks csmarchbanks left a comment

Choose a reason for hiding this comment

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

Thanks!

@csmarchbanks csmarchbanks merged commit c48e26e into prometheus:master Mar 21, 2023
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