Skip to content

[stubtest] Support @final decorator on methods as well #14924

Open
@sobolevn

Description

@sobolevn

After #14922 is merged, I think we can also add a check that this source code has correct stubs:

class A:
    @final
    def method(self): ...

Right now stubs do not have to add @final decorator, stubtest will allow both versions.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions