ansys/pyspeos

refactor: use new features of Python 3.10 / 3.11

Aberta

#438 aberto em 6 de fev. de 2025

 (0 comentário) (0 reação) (0 responsável)Python (10 forks)auto 404
enhancementgood first issue

Métricas do repositório

Stars
 (21 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Since we are planning to bump the minimum version of Python to 3.10 (maybe 3.11 if you guys agree), we can leverage some new things to enhance the code, for example:

  • use the new format of type hint where you don't need to import typing and its classes but directly write my_variable: list[str] | None;
  • use switch instead of having multiple if ... elif ... elif ...
  • probably other things I'm not thinking about right now 😄

Guia do colaborador