Skip to content

Commit bd6f5c9

Browse files
committed
type safety recommended
1 parent 4a9e76a commit bd6f5c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/python/general.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ sidebar_label: General Coding Guidelines
1818
- ternary with `if else` in same line. Donot use `and or` clause. i.e. `value and req_value or default`.
1919
- `classmethod` for multiple way of class initialization
2020
* use namespace whenever possible. Use `as SOMEOTHERNAMESPACE` for collision of namespace
21+
* use `mypy` and type annotation when possible for type safe code.
2122
* `Docker` can be used for deployment. Use `python` images for [docker](https://hub.docker.com/_/python){:target="_blank"}.
2223
* Use `generators` and `yield` instead of data structures for high streams of data.
2324
* Use `itertools`, `functools` for utilities and `collection` for data structures.

0 commit comments

Comments
 (0)