Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly decorating implicit arguments gives inconsistent results #3

Open
k2bd opened this issue Nov 2, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@k2bd
Copy link
Owner

k2bd commented Nov 2, 2019

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
k2bd pushed a commit that referenced this issue Nov 2, 2019
@k2bd k2bd added the bug Something isn't working label Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant