Add a quick section about mypy / type annotations

This commit is contained in:
Radoslav Georgiev 2020-08-16 22:38:55 +03:00
parent e268fb5b00
commit 792ff9c056

View File

@ -49,6 +49,8 @@ If you want to check an existing project showing most of the styleguide, [check
+ [Tasks](#tasks) + [Tasks](#tasks)
* [Periodic Tasks](#periodic-tasks) * [Periodic Tasks](#periodic-tasks)
* [Configuration](#configuration-1) * [Configuration](#configuration-1)
- [Misc](#misc)
* [mypy / type annotations](#mypy--type-annotations)
- [Inspiration](#inspiration) - [Inspiration](#inspiration)
<!-- tocstop --> <!-- tocstop -->
@ -1256,6 +1258,18 @@ Celery is a complex topic, so it's a good idea to invest time reading the docume
We constantly do that & find new things or find better approaches to our problems. We constantly do that & find new things or find better approaches to our problems.
## Misc
### mypy / type annotations
About type annotations & using `mypy`, [this tweet](https://twitter.com/queroumavodka/status/1294789817071542272) resonates a lot with our philosophy.
We have projects where we enforce `mypy` on CI and are very strict with types.
We have projects where types are more loose.
Context is king here.
## Inspiration ## Inspiration
The way we do Django is inspired by the following things: The way we do Django is inspired by the following things: