Skip to content

Incorrectly decorating implicit arguments gives inconsistent results #3

@k2bd

Description

@k2bd

For example, calling the following methods may or may not raise a ParameterTypeError. Methods 1 and 3 pass, method 3 fails.

class ExClass:
    @enforce_type_hints
    def method1(self: int):
        pass

    @classmethod
    @enforce_type_hints
    def method2(cls: int):
        pass

    @enforce_type_hints
    @classmethod
    def method3(cls: int):
        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions