diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5772b3a04b..5c312e491a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -191,7 +191,7 @@ jobs: run: >- echo "key=venv-${{ env.CACHE_VERSION }}-${{ hashFiles('setup.cfg', 'requirements_test_min.txt') - }}" >> $GITHUB_OUTPUT + }}" >> $env:GITHUB_OUTPUT - name: Restore Python virtual environment id: cache-venv uses: actions/cache@v3.0.11 diff --git a/tests/functional/r/regression_02/regression_no_member_7631.py b/tests/functional/r/regression_02/regression_no_member_7631.py new file mode 100644 index 0000000000..758aad057a --- /dev/null +++ b/tests/functional/r/regression_02/regression_no_member_7631.py @@ -0,0 +1,16 @@ +"""Regression test from https://github.com/PyCQA/pylint/issues/7631 +The following code should NOT raise no-member. +""" +# pylint: disable=missing-docstring,too-few-public-methods + +class Base: + attr: int = 2 + +class Parent(Base): + attr: int + +class Child(Parent): + attr = 2 + + def __init__(self): + self.attr = self.attr | 4