mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-03-13 15:25:48 +03:00
Add a quick section about mypy
/ type annotations
This commit is contained in:
parent
e268fb5b00
commit
792ff9c056
14
README.md
14
README.md
|
@ -49,6 +49,8 @@ If you want to check an existing project showing most of the styleguide, [check
|
|||
+ [Tasks](#tasks)
|
||||
* [Periodic Tasks](#periodic-tasks)
|
||||
* [Configuration](#configuration-1)
|
||||
- [Misc](#misc)
|
||||
* [mypy / type annotations](#mypy--type-annotations)
|
||||
- [Inspiration](#inspiration)
|
||||
|
||||
<!-- 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.
|
||||
|
||||
## 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
|
||||
|
||||
The way we do Django is inspired by the following things:
|
||||
|
|
Loading…
Reference in New Issue
Block a user