Closed
Description
We should add typings to manim:
- It allows for more precise intellisense and easier-to-check code (via
mypy
and whatnot); - It ensures we follow a structure that makes sense (i.e., ensures we don't have a data model in which people get completely lost);
- Writing documentation and specifying types are tied to each other. When we work on documentation, it is inevitable that we will specify types for things, so why not add it to the code as well?
Notes:
- We can use
stubgen
to have a headstart; - We can use stub files in order to keep typings separate from the code and not have to change things much (but this is debatable - please expose your opinions on this);
- This is very related to the dataclasses solution proposed in CONFIG dictionaries stuff #7, and may ultimately be a consequence of it.
Thoughts?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done