chore: refactorings for Python 3.10 as minimum version
@phanak-sap is already working on this.
Since Jun 20, 2026.
Assessment
This issue has not been assessed yet.
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
- Dominant language
- Python
- Stars
- 268
- Forks
- 100
- PR merge metrics
- No merged PRs in 30d
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.
More from SAP/python-pyodata
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SAP/python-pyodata#304 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SAP/python-pyodata#108 ·
-
question
SAP/python-pyodata#294 · 1 comment · 1 assignee ·
-
bug
SAP/python-pyodata#282 · 2 comments · 1 assignee ·
-
bug
SAP/python-pyodata#280 · 13 comments · 1 assignee ·
All issues in SAP/python-pyodata
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·