Skip to content

Use variable annotations to avoid None defaults#3575

Open
hauntsaninja wants to merge 2 commits intotornadoweb:masterfrom
hauntsaninja:pep526
Open

Use variable annotations to avoid None defaults#3575
hauntsaninja wants to merge 2 commits intotornadoweb:masterfrom
hauntsaninja:pep526

Conversation

@hauntsaninja
Copy link

@hauntsaninja hauntsaninja commented Jan 31, 2026

PEP 526 landed in Python 3.5 which is quite dead now

This PR focusses on modernising the ones that improve safety around None handling (currently some of these accesses can produce None that the type checker will not warn you about)

If this PR is welcome, let me know, and I can make some more type related modernisations

PEP 526 landed in Python 3.5 which is quite dead now
If this PR is welcome, let me know, and I can make more like it
@hauntsaninja
Copy link
Author

Thanks, fixed the issues!

@hauntsaninja hauntsaninja changed the title Use variable annotations Use variable annotations to avoid None defaults Feb 1, 2026
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.

1 participant