-
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make private functions and classes more explicit #2427
Comments
Copied from the PR linked above |
There was an attempt by @arjxn-py on adding It would make sense to start with smaller modules like |
It should be possible to add
|
The second one makes the most sense to me, it should decide the namespace when we import PyBaMM. The third one would need a bit more refining because we have things like |
We also have these attributes in the second too, as ultimately:
Currently Protected modules are exposed, but their attributes are not & Private modules and their attributes are not exposed. I shall open a PR going forward with the second at the moment but to refine this i'd welcome reviews to omit attributes based upon different preferences. |
Make it clearer which methods should not be accessed by users, by adding an underscore at the start of their name
The text was updated successfully, but these errors were encountered: