Skip to content

Commit 078ebea

Browse files
authored
Update astroid to 2.5.3 (#4334)
* Add test case for typing.Generic with ABCMeta
1 parent ac02be7 commit 078ebea

File tree

7 files changed

+25
-3
lines changed

7 files changed

+25
-3
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Release date: Undefined
2626

2727
Closes #4301
2828

29+
* Updated ``astroid`` to 2.5.3
30+
31+
Closes #2822, #4206, #4284
32+
2933

3034
What's New in Pylint 2.7.5?
3135
===========================

doc/whatsnew/2.8.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ Other Changes
2626

2727
* The 'doc' extra-require has been removed. ``pylint.version`` is now ``pylint.__version__`` and ``__pkginfo__`` does
2828
not contain the package metadata anymore.
29+
30+
* Updated ``astroid`` to 2.5.3

requirements_test_min.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-e .
2-
astroid==2.5.2 # Pinned to a specific version for tests
2+
astroid==2.5.3 # Pinned to a specific version for tests
33
pytest~=6.2
44
pytest-benchmark~=3.2

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ project_urls =
4242
[options]
4343
packages = find:
4444
install_requires =
45-
astroid>=2.5.2,<2.7
45+
astroid>=2.5.3,<2.7
4646
isort>=4.2.5,<6
4747
mccabe>=0.6,<0.7
4848
toml>=0.7.1

tests/functional/n/name/name_styles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class FooEnum(Enum):
151151
bad_enum_name = 2 # [invalid-name]
152152

153153
class Bar:
154-
"""Class with class constants annotated with ClassVar."""
154+
"""Class with class variables annotated with ClassVar."""
155155
CLASS_CONST: ClassVar[int] = 42
156156
CLASS_CONST2: ClassVar = "const"
157157
variable: ClassVar[str] = "invalid name"

tests/functional/t/typing_generic.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# pylint: disable=missing-docstring,invalid-name,too-few-public-methods
2+
3+
# https://github.com/PyCQA/pylint/issues/2822
4+
# Base should be subscriptable, even with ABCMeta as metaclass
5+
from abc import ABCMeta
6+
from typing import Generic, TypeVar
7+
8+
T = TypeVar("T")
9+
10+
class Base(Generic[T], metaclass=ABCMeta):
11+
"""Base"""
12+
13+
class Impl(Base[str]):
14+
"""Impl"""

tests/functional/t/typing_generic.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
min_pyver=3.7

0 commit comments

Comments
 (0)