Fix false positive ``unused-private-member`` for accessing attributes in a class using ``cls`` (#4965)

* Fix false positive ``unused-private-member`` for accessing attributes in
a class using ``cls``

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
5 files changed