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

@inherit_check_shapes doesn't work with static methods. #2

Open
jesnie opened this issue Jul 5, 2022 · 1 comment
Open

@inherit_check_shapes doesn't work with static methods. #2

jesnie opened this issue Jul 5, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jesnie
Copy link
Member

jesnie commented Jul 5, 2022

class A:

    @staticmethod
    @check_shapes(...)
    def f(...):
        ...

class B(A):

    @staticmethod
    @inherit_check_shapes
    def f(...):
        ...

Does not seem to work.

@jesnie jesnie added the bug Something isn't working label Jul 5, 2022
@jesnie jesnie transferred this issue from GPflow/GPflow Sep 26, 2022
@khurram-ghani
Copy link

It also doesn't work with @property.

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
Status: Todo
Development

No branches or pull requests

2 participants