Skip to content

Switch type comments to regular type annotations#277

Open
yangdanny97 wants to merge 1 commit intopnuckowski:masterfrom
yangdanny97:master
Open

Switch type comments to regular type annotations#277
yangdanny97 wants to merge 1 commit intopnuckowski:masterfrom
yangdanny97:master

Conversation

@yangdanny97
Copy link

This library only supports v3.7+, so we can use regular type annotations instead of type comments. There are a few places that use the comment mostly because type comments do not error when attributes are initialized w/ None but annotated w/ something else, but I think we can just do a type: ignore here.

@yangdanny97 yangdanny97 marked this pull request as ready for review November 28, 2025 15:29
Copy link
Contributor

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

LGTM!

Would be nice to get this merged :)

@DanielNoord
Copy link
Contributor

@pnuckowski Gentle ping on this one :)

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