Smaller scope for linter exclusion and removal of metadata()

This commit is contained in:
Joona Hoikkala 2019-08-16 10:45:04 +03:00
parent 6b41bee007
commit 519c497709
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C

View file

@ -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):
"""