You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was one of the ideas mentioned when the project was first introduced to peers. At the moments there are no plans except an acknowledgment that it would be a challenging task to do so statically. Static checking is a requirement here to avoid any runtime penalty, which could be a blocker to adoptions.
Proposals and/or pull requests would be very welcome!
Totally agree. I've never implemented any kind of text/code static checker before, but is something that looks very interesting to study. Do you have any idea/tip on how this can be done?
I haven't done a thorough search for solutions. Just an idea: may be to take a look at using Jedi API https://jedi.readthedocs.io/en/latest/docs/api.html#jedi.Script to infer the scope context for a particular name reference, then go from there to determine whether a method/function whose name has a preceding underscore belongs to the same module.
Great Initiative folks. Do you have any plans to expand this library to also enforce encapsulation in methods and functions?
The text was updated successfully, but these errors were encountered: