Detect misuse of private class members in Python3

Viewed 16

Is there any way to detect wrong use of private class members before runtime in Python3. Invoking something like

obj.__function()

should end up in a syntax error. Mypy doesn't seem to care about them.

Any advice? Thanks on advance

0 Answers
Related