refactor(guidelines): ✨ Update coding standards for type annotations
* Added a guideline to use modern built-in generics from the `typing` module. * This change aligns with PEP 484 and promotes better coding practices.
This commit is contained in:
@@ -20,6 +20,7 @@ applyTo: "**/*.py"
|
||||
## Coding Guidelines
|
||||
|
||||
- Use type annotations / hints for function and method parameters, return types and variables. Follow PEP 484.
|
||||
- Use the modern built-in generics from the `typing` module, such as `list`, `dict`, and `set`, instead of the older `List`, `Dict`, and `Set` from `typing`.
|
||||
- Use newest coding style which is supported by the used Python version.
|
||||
- Use blank lines to keep code organized and readable.
|
||||
- Follow PEP 492 – Coroutines with async and await syntax
|
||||
|
||||
Reference in New Issue
Block a user