-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementAdditions and improvements in generalAdditions and improvements in generalgood first issueGood for newcomersGood for newcomershacktoberfest
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?
clarfonthey, Timmmm, septatrix, KanHarI, GZGavinZhao and 3 moreclarfonthey, LilianBoulard and ubaldot
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementAdditions and improvements in generalAdditions and improvements in generalgood first issueGood for newcomersGood for newcomershacktoberfest
Type
Projects
Status
✅ Done