diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 65c6499d2..67068c0c0 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -14,8 +14,8 @@ Ex-maintainers Maintainers ----------- - Pierre Sassoulas -- Jacob Walls - Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> +- Jacob Walls - Marc Mueller <30130371+cdce8p@users.noreply.github.com> - Hippo91 - Bryce Guinta diff --git a/ChangeLog b/ChangeLog index fa9e5bcaf..60bca91fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,16 +8,25 @@ What's New in astroid 4.1.0? Release date: TBA -* Add ``HTTPMethod`` enum support to brain module for Python 3.11+. - Closes #4135 +What's New in astroid 4.0.3? +============================ +Release date: TBA + What's New in astroid 4.0.2? ============================ -Release date: TBA +Release date: 2025-11-09 + +* Handle FunctionDef blockstart_tolineno edge cases correctly. + Refs #2880 + +* Add ``HTTPMethod`` enum support to brain module for Python 3.11+. + Refs pylint-dev/pylint#10624 + Closes #2877 What's New in astroid 4.0.1? ============================ diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index 465f2f8ad..8ef239549 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -2,5 +2,5 @@ # For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE # Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt -__version__ = "4.0.1" +__version__ = "4.0.2" version = __version__ diff --git a/astroid/interpreter/_import/util.py b/astroid/interpreter/_import/util.py index 976fc005b..8b8725f91 100644 --- a/astroid/interpreter/_import/util.py +++ b/astroid/interpreter/_import/util.py @@ -83,7 +83,6 @@ def is_namespace(modname: str) -> bool: # Repair last_submodule_search_locations if last_submodule_search_locations: - # pylint: disable=unsubscriptable-object last_item = last_submodule_search_locations[-1] # e.g. for failure example above, add 'a/b' and keep going # so that find_spec('a.b.c', path=['a', 'a/b']) succeeds diff --git a/pylintrc b/pylintrc index 63db8dd52..2957fffb6 100644 --- a/pylintrc +++ b/pylintrc @@ -42,7 +42,7 @@ unsafe-load-any-extension=no # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code -extension-pkg-whitelist= +extension-pkg-whitelist=mypy # Minimum supported python version py-version = 3.10.0 diff --git a/requirements_dev.txt b/requirements_dev.txt index 77a6fd9f6..9f5ea5659 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -3,5 +3,5 @@ # Tools used during development, prefer running these with pre-commit black pre-commit -pylint>=3.2.7 +pylint>=4.0.0 ruff diff --git a/tbump.toml b/tbump.toml index 358a9a1c0..251afc5c6 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/astroid" [version] -current = "4.0.1" +current = "4.0.2" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/tests/test_raw_building.py b/tests/test_raw_building.py index bb7c733e5..969178c30 100644 --- a/tests/test_raw_building.py +++ b/tests/test_raw_building.py @@ -10,7 +10,7 @@ from __future__ import annotations -import _io +import _io # pylint: disable=wrong-import-order import logging import os import sys