From e83b482989530857339d215a8d422b62f123fcb4 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 20 Aug 2021 23:31:13 +0200 Subject: Upgrade pylint checks to 2.10.0 --- astroid/nodes/node_ng.py | 2 +- requirements_test_pre_commit.txt | 2 +- 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) -- cgit v1.2.1