Skip to content

Bug: Wrong static method dispatch #109

Open

Description

@bogdan-nikitin

@dispatch dispatch static methods like global functions, for example:

>>> class PlusOne:
...     @staticmethod
...     @dispatch(int)
...     def do(n):
...         print(n + 1)


>>> class MinusOne:
...     @staticmethod
...     @dispatch(int)
...     def do(n):
...         print(n - 1)

>>> PlusOne.do(1)
0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions