Skip to content

Disallow type[NoReturn] #11291

@DetachHead

Description

@DetachHead
from typing import NoReturn

# Incompatible types in assignment (expression has type "object", variable has type "Type[NoReturn]")  [assignment]
foo: type[NoReturn] = NoReturn 

https://mypy-play.net/?mypy=latest&python=3.10&gist=ae2c337cc5fdfe2a3022aaae54903012

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions