Skip to content

Add static analysis support to _util.Final #2683

@jakkdl

Description

@jakkdl

See discussion in #2668 (comment)

@final was added in 3.8, so it would be good to make classes decorated with _util.Final also be treated as @final by type checkers. I didn't find a good way of applying both with a single decorator or metaclass, so unless I missed a way we might have to have both on all classes. Or possibly skip one of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    typingAdding static types to trio's interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions