Skip to content

refactor: Modernize type annotations#29

Merged
msto merged 1 commit intomainfrom
ms/type-annotation-fixes
Mar 13, 2026
Merged

refactor: Modernize type annotations#29
msto merged 1 commit intomainfrom
ms/type-annotation-fixes

Conversation

@msto
Copy link
Copy Markdown
Collaborator

@msto msto commented Mar 7, 2026

Use Self instead of TypeVar/string-quoted returns in Metric.read() and MetricWriter.__enter__(). Use type[...] instead of typing.Type[...]. Add type parameter to DictWriter[str].

@clintval clintval assigned msto and unassigned clintval Mar 9, 2026
Use `Self` instead of TypeVar/string-quoted returns in `Metric.read()`
and `MetricWriter.__enter__()`. Use `type[...]` instead of
`typing.Type[...]`. Add type parameter to `DictWriter[str]`.

Co-Authored-By: Rahul Kaushal <kaushalrahul15@gmail.com>
@msto msto force-pushed the ms/type-annotation-fixes branch from f1c96a1 to 48742d2 Compare March 13, 2026 18:09
@msto msto merged commit 90cb3b4 into main Mar 13, 2026
2 checks passed
@msto msto deleted the ms/type-annotation-fixes branch March 13, 2026 18:10
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