oerc0122 / castep_outputs

Parser for CASTEP output files
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Add `TypedDict`s to describe data returned from parsing methods #124

Closed oerc0122 closed 5 months ago

oerc0122 commented 7 months ago
oerc0122 commented 5 months ago

This looks very pretty! And seems to leave plenty of options open for further feature development: any of these dicts can be reworked into a (data)class at a later stage if necessary, with minimal changes.

I have a few comments where readability might be improved.

Yeah, I'm not sure dataclass would ever be wanted here, but I like the fact that this form serves as documentation as well as a check.