@classmethod
@cache_maker.lrucache(maxsize=200)
def category_names_by_language(cls, category_id):
return {c.language: c.name for c in cls.objects.filter(category_id=category_id)}
the if decorator.children[1].value in _is_staticmethod raises:
AttributeError: 'PythonNode' object has no attribute 'value'
problem seems to be that cache_maker in @cache_maker.lrucache has an unexpected node type
for example:
the
if decorator.children[1].value
in_is_staticmethod
raises:problem seems to be that
cache_maker
in@cache_maker.lrucache
has an unexpected node type