Skip to content

Commit

Permalink
Fix 'object has no attribute additional_builtins' (#6410)
Browse files Browse the repository at this point in the history
Closes #6408
  • Loading branch information
Pierre-Sassoulas authored Apr 20, 2022
1 parent 19d660e commit 106f0af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ What's New in Pylint 2.13.7?
============================
Release date: TBA

* Fix a crash caused by using the new config from 2.14.0 in 2.13.x code.

Closes #6408


What's New in Pylint 2.13.6?
Expand Down
3 changes: 2 additions & 1 deletion doc/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ cherry-picked on the maintenance branch.
- Bump the version and release by using `tbump X.Y-1.Z --no-push`. (For example:
`tbump 2.3.5 --no-push`)
- Check the result visually with `git show`.
- Push the tag.
- Open a merge request to run the CI tests for this branch
- Create and push the tag.
- Release the version on GitHub with the same name as the tag and copy and paste the
appropriate changelog in the description. This triggers the PyPI release.
- Merge the `maintenance/X.Y.x` branch on the main branch. The main branch should have
Expand Down
4 changes: 1 addition & 3 deletions pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2069,9 +2069,7 @@ def _is_only_type_assignment(
if not isinstance(defstmt, nodes.AnnAssign) or defstmt.value:
return False

if node.name in self.linter.config.additional_builtins or utils.is_builtin(
node.name
):
if node.name in self.config.additional_builtins or utils.is_builtin(node.name):
return False

defstmt_frame = defstmt.frame(future=True)
Expand Down

0 comments on commit 106f0af

Please sign in to comment.