chore: refactorings for Python 3.10 as minimum version
Open
@phanak-sap is already working on this.
Since Jun 20, 2026.
chore
- Dominant language
- Python
- Stars
- 268
- Forks
- 100
- PR merge metrics
- No merged PRs in 30d
Description
- [PEP 604] Replace
isinstance(x, (A, B))withisinstance(x, A | B)—service.pylines ~1306 and ~1711 - [PEP 634 / HIGH] Refactor
_build_expressionoperator dispatch tomatch/case—service.py(removes
too-many-return-statements, too-many-branchespylint suppression) - [PEP 634 / HIGH] Refactor
MetadataBuilder.build()XML type dispatch tomatch/case—model.py~line
2737 - [PEP 634 / MEDIUM] Refactor
function_import_handlerreturn-type dispatch tomatch/case—service.py
~line 1711 - [PEP 634 / MEDIUM] Refactor navigation property multiplicity dispatch to
match/case—service.py~line
859 - [PEP 634 / LOW] Refactor
ValueHelper.from_etreeannotation property dispatch tomatch/case—
model.py~line 2473 - [CLEANUP] Replace all
super(ClassName, self)withsuper()— 46 locations acrossexceptions.py,
model.py,service.py,vendor/SAP.py
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.