mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
Smaller scope for linter exclusion and removal of metadata()
This commit is contained in:
parent
6b41bee007
commit
519c497709
1 changed files with 2 additions and 11 deletions
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=abstract-method
|
||||
"""ParserNode interface for interacting with configuration tree.
|
||||
|
||||
General description
|
||||
|
|
@ -128,15 +127,6 @@ class ParserNode(object):
|
|||
filepath: str
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
def metadata(self, key):
|
||||
"""
|
||||
Gets an element from the metadata dictionary for this ParserNode object.
|
||||
|
||||
:param str key: Element key name
|
||||
:returns: Requested metadata element
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
def save(self, msg):
|
||||
"""
|
||||
|
|
@ -154,7 +144,8 @@ class ParserNode(object):
|
|||
|
||||
"""
|
||||
|
||||
|
||||
# Linter rule exclusion done because of https://github.com/PyCQA/pylint/issues/179
|
||||
# pylint: disable=abstract-method
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class CommentNode(ParserNode):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue