8000 stubgen: Don't generate `Incomplete | None = None` · Issue #19096 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
stubgen: Don't generate Incomplete | None = None #19096
Closed
@srittau

Description

@srittau

In typeshed we've replaced all instances of : Incomplete | None = None in argument annotations with just =None (python/typeshed#14029). We've also added a check to flake8-pyi to avoid regressions (PyCQA/flake8-pyi#509). The reason for this change was originally outlines by @Avasam:

This is still interpreted as Any | None by mypy. And now more correctly interpreted as Unknown | None by pyright.

It would be great if we could change the output of stubgen accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0