Skip to content

Commit 106f0af

Browse files
Fix 'object has no attribute additional_builtins' (#6410)
Closes #6408
1 parent 19d660e commit 106f0af

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ What's New in Pylint 2.13.7?
2020
============================
2121
Release date: TBA
2222

23+
* Fix a crash caused by using the new config from 2.14.0 in 2.13.x code.
24+
25+
Closes #6408
2326

2427

2528
What's New in Pylint 2.13.6?

doc/release.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ cherry-picked on the maintenance branch.
7171
- Bump the version and release by using `tbump X.Y-1.Z --no-push`. (For example:
7272
`tbump 2.3.5 --no-push`)
7373
- Check the result visually with `git show`.
74-
- Push the tag.
74+
- Open a merge request to run the CI tests for this branch
75+
- Create and push the tag.
7576
- Release the version on GitHub with the same name as the tag and copy and paste the
7677
appropriate changelog in the description. This triggers the PyPI release.
7778
- Merge the `maintenance/X.Y.x` branch on the main branch. The main branch should have

pylint/checkers/variables.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,9 +2069,7 @@ def _is_only_type_assignment(
20692069
if not isinstance(defstmt, nodes.AnnAssign) or defstmt.value:
20702070
return False
20712071

2072-
if node.name in self.linter.config.additional_builtins or utils.is_builtin(
2073-
node.name
2074-
):
2072+
if node.name in self.config.additional_builtins or utils.is_builtin(node.name):
20752073
return False
20762074

20772075
defstmt_frame = defstmt.frame(future=True)

0 commit comments

Comments
 (0)