Files
openide/python/testData/pyi/inspections/accessProtectedProperty/AccessProtectedProperty.py
Ilia Zakoulov 91f27d8587 PY-76629: Suppress PyProtectedMemberInspection if a member is defined in .pyi
Protected member should not be highlighted as a warning if it resolves to .pyi file.
We assume that everything in .pyi file is a public API.

GitOrigin-RevId: c8275f3e48e3cd69b1676de9b78606f28ea224c8
2024-10-28 14:57:57 +00:00

5 lines
193 B
Python

from test import MyClass
public_api = MyClass._public_api
not_public_api = <weak_warning descr="Access to a protected member _not_public_api of a class">MyClass._not_public_api</weak_warning>