for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from plugin.api.core.base import Service, expose
from plugin.managers.m_trakt.account import TraktAccountManager
account
plugin.managers.m_trakt
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.
__init__.py
class TraktAccountService(Service):
__key__ = 'account.trakt'
@expose
def delete(self, id):
id
It is generally discouraged to redefine built-ins as this makes code very hard to read.
If a method does not access any attributes of the class, it could also be implemented as a function or static method. This can help improve readability. For example
class Foo: def some_method(self, x, y): return x + y;
could be written as
class Foo: @classmethod def some_method(cls, x, y): return x + y;
# Delete trakt account
return TraktAccountManager.delete(
id=id
)