about summary refs log tree commit diff stats
path: root/examples/plugin_avfs.py
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-05-26 15:13:09 +0200
committertoonn <toonn@toonn.io>2022-05-26 15:13:09 +0200
commit9252d69ede0b2a086fb7359706d7ef58b41e6561 (patch)
tree2047635e2ffa70441014b4d289c7a412e362bdbb /examples/plugin_avfs.py
parent391f061cb0b0cfa8266c0651f2a6d948f22e01dd (diff)
downloadranger-9252d69ede0b2a086fb7359706d7ef58b41e6561.tar.gz
colorscheme: Make use an abstract method
The `use` method has always been decorated as being a `@staticmethod`.
Many colorschemes use fields to store certain properties, these then
need to be accessed using `self`. This isn't possible with a static
method so they override it with a regular method. This is fine as far as
Python is concerned but PyLint doesn't like the `self` parameters adding
an argument to the method.

All colorschemes should actually implement the `use` method anyway so
making it an `@abstractmethod` seems appropriate and allows us to
include the `self` argument.
Diffstat (limited to 'examples/plugin_avfs.py')
0 files changed, 0 insertions, 0 deletions