Skip to content

Upgrade astroid to 3.0.0a4 #8685

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

Merged
merged 4 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 2 additions & 0 deletions pylint/checkers/design_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@
"typing.AsyncContextManager",
"typing.Hashable",
"typing.Sized",
TYPING_NAMEDTUPLE,
TYPING_TYPEDDICT,
)
)

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/modified_iterating_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _modified_iterating_check(
self.add_message(
msg_id,
node=node,
args=(iter_obj._repr_name(),),
args=(iter_obj.repr_name(),),
confidence=interfaces.INFERENCE,
)

Expand Down
4 changes: 3 additions & 1 deletion pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,9 @@ def _infer_from_metaclass_constructor(
class_bases = nodes.List()
class_bases.postinit(elts=cls.bases)

attrs = nodes.Dict()
attrs = nodes.Dict(
lineno=0, col_offset=0, parent=None, end_lineno=0, end_col_offset=0
)
local_names = [(name, values[-1]) for name, values in cls.locals.items()]
attrs.postinit(local_names)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = [
# Also upgrade requirements_test_min.txt.
# Pinned to dev of second minor update to allow editable installs and fix primer issues,
# see https://github.com/pylint-dev/astroid/issues/1341
"astroid>=3.0.0a2,<=3.1.0-dev0",
"astroid>=3.0.0a4,<=3.1.0-dev0",
"isort>=4.2.5,<6",
"mccabe>=0.6,<0.8",
"tomli>=1.1.0;python_version<'3.11'",
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_min.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-e .[testutils,spelling]
# astroid dependency is also defined in pyproject.toml
astroid==3.0.0a2 # Pinned to a specific version for tests
astroid==3.0.0a4 # Pinned to a specific version for tests
typing-extensions~=4.6
py~=1.11.0
pytest~=7.3
Expand Down