Module: check_mk
Branch: master
Commit: 39a79d50686fd930b422e8a58528098a96f20153
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=39a79d50686fd9…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Jul 10 13:24:29 2018 +0200
Disabled a few abstract-method warnings.
Change-Id: Idf44a88577078b534f2c09b0d0d293b4f8ced20a
---
cmk_base/data_sources/abstract.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/cmk_base/data_sources/abstract.py b/cmk_base/data_sources/abstract.py
index c7be076..cbc1f0a 100644
--- a/cmk_base/data_sources/abstract.py
+++ b/cmk_base/data_sources/abstract.py
@@ -554,6 +554,12 @@ class DataSource(object):
class CheckMKAgentDataSource(DataSource):
"""Abstract base class for all data sources that work with the
Check_MK agent data format"""
+
+ # NOTE: This class is obviously still abstract, but pylint fails to see
+ # this, even in the presence of the meta class assignment below, see
+ #
https://github.com/PyCQA/pylint/issues/179.
+
+ # pylint: disable=abstract-method
__metaclass__ = abc.ABCMeta
def __init__(self, hostname, ipaddress):
@@ -730,6 +736,12 @@ class CheckMKAgentDataSource(DataSource):
class ManagementBoardDataSource(DataSource):
"""Abstract base class for all data sources that work with the
management board configuration"""
+
+ # NOTE: This class is obviously still abstract, but pylint fails to see
+ # this, even in the presence of the meta class assignment below, see
+ #
https://github.com/PyCQA/pylint/issues/179.
+
+ # pylint: disable=abstract-method
__metaclass__ = abc.ABCMeta
_for_mgmt_board = True