Skip to content

Commit

Permalink
Merge f1c4b99 into 9b0ac71
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Oct 19, 2022
2 parents 9b0ac71 + f1c4b99 commit 504bba5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions tests/functional/r/regression_02/regression_no_member_7631.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 504bba5

Please sign in to comment.