Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pulling main #21

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/primer_run_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ jobs:
git config --global user.email "primer@example.com"
git config --global user.name "Pylint Primer"
git pull origin ${{ steps.download-main-run.outputs.result }} --no-edit --no-commit --no-rebase
echo $?
git status
git log -n 10

# Run primer
- name: Run pylint primer
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def close(self) -> None:
self.add_message("cyclic-import", args=" -> ".join(cycle))

def get_map_data(self) -> defaultdict[str, set[str]]:
return self.import_graph
return (self.import_graph,)

def reduce_map_data(
self, linter: PyLinter, data: list[defaultdict[str, set[str]]]
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/refactoring_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ def _check_super_with_arguments(self, node: nodes.Call) -> None:

if (
len(node.args) != 2
or not all(isinstance(arg, nodes.Name) for arg in node.args)
or not all(isinstance(arg, nodes.Unknown) for arg in node.args)
or node.args[1].name != "self"
or (frame_class := node_frame_class(node)) is None
or node.args[0].name != frame_class.name
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ def visit_for(self, node: nodes.For) -> None:
inferred = utils.safe_infer(node.iter)
if not isinstance(inferred, DICT_TYPES):
return

"""irrelevant"""
values = self._nodes_to_unpack(inferred)
if not values:
# no dict items returned
Expand Down