I'm working on an existing project adding some new features and came across this issue:
from abc import ABC
class Preprocessor(ABC):
@classmethod
@property
def name(self):
raise NotImplementedError
@classmethod
@property
def version(self):
raise NotImplementedError
@classmethod
@property
def feature_group_name(cls):
return f'{cls.name}_{cls.version}'
class Feature(Preprocessor):
name = 'testFeature'
version = 'v1'
Feature().feature_group_name
The result I'm expecting should be:
'testFeature_v1'
But I'm getting something like:
<bound method ? of <class '__main__.Feature'>>
Thank you in advance