diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-12-20 12:14:52 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-12-21 17:18:39 -0800 |
commit | 7b6eb3007c135cad4c7a873a92816bb540afb171 (patch) | |
tree | c57cd43a37923511fb13bc7ef53615c2bb9a76c8 /alot/__main__.py | |
parent | 41ef1f14636caf213e7c25dc3eeb3d911418ee72 (diff) |
Use abc module to signal abstract base classes
The Completer class is abastract, and it's complete method is also
abstract. Using ABCMeta achieve two thing, first it will cause an error
if a developer doesn't overwrite the method in a subclass. And second
that it tells the static analysis tools to ignore the unused arguments
in the signature, since this is the definition of a signature, not an
actual function.
By the same logic addressbook.AddressBook, and account.Account have been
extended to use ABCMeta as their metaclass and have had their abstract
methods decorated with the abstract method attribute.
Diffstat (limited to 'alot/__main__.py')
0 files changed, 0 insertions, 0 deletions