Skip to content
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

Small QOL Change: Use abstractmethods in jtor.py and add typehints to said abstract met… #89

Merged

Conversation

allen-adastra
Copy link
Contributor

@allen-adastra allen-adastra commented Mar 21, 2023

…hods

Had a bit of time to kill, reckoned I'd make this small QOL change.

PEP 3119 introduced "abstract base classes (abc)" which provides some good features for base classes such as Profile in jtor.py. Added strict enforcement to the methods Jtor, pprime, ffprime, and fvac which derived classes must implement.

freegs/jtor.py Outdated Show resolved Hide resolved
Co-authored-by: Peter Hill <zed.three@gmail.com>
@bendudson bendudson merged commit 30f0c91 into freegs-plasma:master Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants