-
Notifications
You must be signed in to change notification settings - Fork 868
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
Self
return type on from_dict
methods
#3702
Conversation
def from_dict(cls, dct: dict) -> Self:
good catch. i think we can rename those to |
Sure. I would do that (I saw your follow up in |
Sure would do. Can you please rebuild the |
|
i did have those installed. i just updated |
Great to know. Meanwhile I noticed this warning from 3 years ago #2149: pymatgen/pymatgen/analysis/interface.py Lines 18 to 23 in af04258
I assume it might be old enough to be removed? |
…rename `with_*` to `from_*` (#3725) * rename `analysis` see end of #3702 * simply message * rename classes to PascalCase * rename classes to PascalCase * move replacement close to old * rename cls methods in `graphs` * rename cls in `cp2k.sets` * replace `with_empty_graph` with `from_empty_graph` * replace `with_edges` with `from_edges` * replace `with_local_env_strategy` with `from_local_env_strategy` * rename `with_edges` to `from_edges` * case fix * DEBUG: test swapping decorator order * swap `deprecated` and `classmethod` decorators
follow up to @DanielYang59's start in #3694 of adding
Self
return types onfrom_dict
methods. far from complete. should be set onfrom_str
and otherfrom_...
methods as well