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:
Robert Honz
2025-07-02 08:49:32 +02:00
parent fd16a620f2
commit 6d62a3b5c0
+1
View File
@@ -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