Skip to content

Commit

Permalink
Test pylint issue with collections.abc
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Dec 12, 2024
1 parent b9348a6 commit c270566
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
12 changes: 12 additions & 0 deletions zhmcclient/pylint_issue.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit c270566

Please sign in to comment.