-
Notifications
You must be signed in to change notification settings - Fork 218
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
refactor: cobra.io.json #1151
refactor: cobra.io.json #1151
Conversation
To be merged after #1134 is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/cobra/__init__.py:17: in <module>
from cobra import io
src/cobra/io/__init__.py:5: in <module>
from cobra.io.json import from_json, load_json_model, save_json_model, to_json
src/cobra/io/json.py:5: in <module>
from ..dict import model_from_dict, model_to_dict
E ModuleNotFoundError: No module named 'cobra.dict'
src/cobra/io/json.py
Outdated
|
||
from cobra.io.dict import model_from_dict, model_to_dict | ||
from ..dict import model_from_dict, model_to_dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from ..dict import model_from_dict, model_to_dict | |
from .dict import model_from_dict, model_to_dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoot! Missed it. Sending a fix now.
fa94ecf
to
5b07b38
Compare
Checks were taking some time, hence rebased it on latest devel. |
This PR adds typing annotations for cobra.io.json and its unit tests. It also upgrades the code style for them to maintain Python 3.6+ compatibility.