You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abstract is designed to be used with instance methods.
class Foo:
@Abstract
def DoStuff(self):
"""Implementation to do stuff."""
Uses with classmethods are possible and work as expected
class Foo:
@classmethod
@Abstract
def DoStuff(cls):
"""Implementation to do stuff."""
But when an implementation is missing in the sub class no reference to the offending class is present (just type).
In this issue we should add proper support for class methods (better error message) and better describe this in the docstring (also that staticmethods are not supported).
The text was updated successfully, but these errors were encountered:
nicoddemus
changed the title
Better output for @Abstract
Better @Abstract output for classmethods and staticmethods
Jan 26, 2022
Abstract
is designed to be used with instance methods.Uses with
classmethod
s are possible and work as expectedBut when an implementation is missing in the sub class no reference to the offending class is present (just
type
).In this issue we should add proper support for class methods (better error message) and better describe this in the docstring (also that
staticmethod
s are not supported).The text was updated successfully, but these errors were encountered: