Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

More type hints for synapse.logging #13103

Merged
merged 6 commits into from
Jun 30, 2022
Merged

More type hints for synapse.logging #13103

merged 6 commits into from
Jun 30, 2022

Conversation

clokep
Copy link
Member

@clokep clokep commented Jun 17, 2022

scopecontextmanager is now fully typed and opentracing has some more types.

I have a follow-on to this that I'm still working through, typing some of the decorators causes many errors. 😢

Comment on lines +42 to 43
def __init__(self) -> None:
pass
Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't remove this because we're still overriding the default ScopeManager init method.

@clokep clokep marked this pull request as ready for review June 17, 2022 19:28
@clokep clokep requested a review from a team as a code owner June 17, 2022 19:28
synapse/logging/opentracing.py Outdated Show resolved Hide resolved
synapse/logging/opentracing.py Show resolved Hide resolved
@clokep clokep requested a review from squahtx June 29, 2022 17:59
Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

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

lgtm!

@clokep clokep enabled auto-merge (squash) June 30, 2022 12:48
@clokep clokep merged commit 6ad012e into develop Jun 30, 2022
@clokep clokep deleted the clokep/log-types branch June 30, 2022 13:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants