diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-20 23:31:13 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-20 23:31:13 +0200 |
commit | e83b482989530857339d215a8d422b62f123fcb4 (patch) | |
tree | 6cb684582ab58469fa20b31b0deb9d5247f0b500 | |
parent | 4ef13b03fae72f0ada66daf0e1098d2dd363b141 (diff) | |
download | astroid-git-upgrade-to-pylint-2.10.tar.gz |
Upgrade pylint checks to 2.10.0upgrade-to-pylint-2.10
-rw-r--r-- | astroid/nodes/node_ng.py | 2 | ||||
-rw-r--r-- | requirements_test_pre_commit.txt | 2 | ||||
-rw-r--r-- | script/bump_changelog.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/astroid/nodes/node_ng.py b/astroid/nodes/node_ng.py index 761b2800..19420c7f 100644 --- a/astroid/nodes/node_ng.py +++ b/astroid/nodes/node_ng.py @@ -355,7 +355,7 @@ class NodeNG: last_child = self.last_child() if last_child is None: return self.fromlineno - return last_child.tolineno # pylint: disable=no-member + return last_child.tolineno def _fixed_source_line(self) -> Optional[int]: """Attempt to find the line that this node appears on. diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index d5ee97b6..c7f3e8a3 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -1,5 +1,5 @@ black==21.7b0 -pylint==2.9.6 +pylint==2.10.0 isort==5.9.2 flake8==3.9.2 mypy==0.910 diff --git a/script/bump_changelog.py b/script/bump_changelog.py index b11cf006..af0d92f8 100644 --- a/script/bump_changelog.py +++ b/script/bump_changelog.py @@ -33,7 +33,7 @@ def main() -> None: with open(DEFAULT_CHANGELOG_PATH, encoding="utf-8") as f: content = f.read() content = transform_content(content, args.version) - with open(DEFAULT_CHANGELOG_PATH, "w") as f: + with open(DEFAULT_CHANGELOG_PATH, "w", encoding="utf8") as f: f.write(content) |