From 6d62a3b5c040abd9a0a666c5a930fcd5378101f3 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Wed, 2 Jul 2025 08:49:32 +0200 Subject: [PATCH] =?UTF-8?q?refactor(guidelines):=20=E2=9C=A8=20Update=20co?= =?UTF-8?q?ding=20standards=20for=20type=20annotations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added a guideline to use modern built-in generics from the `typing` module. * This change aligns with PEP 484 and promotes better coding practices. --- .github/copilot-instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index c890c0c..bc8e87e 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -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