diff --git a/Makefile b/Makefile index b8c8d124..7cb9a2d4 100644 --- a/Makefile +++ b/Makefile @@ -589,7 +589,7 @@ $(bdist_file) $(version_file): pyproject.toml $(dist_dependent_files) $(done_dir)/pylint_$(pymn)_$(PACKAGE_LEVEL).done: $(done_dir)/develop_$(pymn)_$(PACKAGE_LEVEL).done $(pylint_rc_file) $(check_py_files) @echo "Makefile: Running Pylint" -$(call RM_FUNC,$@) - pylint $(pylint_opts) --rcfile=$(pylint_rc_file) --output-format=text $(check_py_files) + pylint $(pylint_opts) --rcfile=$(pylint_rc_file) --output-format=text zhmcclient/pylint_issue.py echo "done" >$@ @echo "Makefile: Done running Pylint" diff --git a/zhmcclient/pylint_issue.py b/zhmcclient/pylint_issue.py new file mode 100644 index 00000000..c3a078ae --- /dev/null +++ b/zhmcclient/pylint_issue.py @@ -0,0 +1,12 @@ +""" +Reproduce pylint issue +""" + +from collections.abc import Mapping + + +def is_mapping(obj): + """ + Return whether obj is a Mapping + """ + return isinstance(obj, Mapping)