Skip to content

(code style) Refactor code with match/case #140

@gunnar-mb

Description

@gunnar-mb

A lot of the code in the current implementation uses if-else chains but the python match/case statement (introduced in python 3.10) would fit better.

Task: Rewrite the code to use match statement - for example in the many cases where we have code that is conditional on the type such as:


if type(foo) == Bar:
   ...
elseif type()....
   ...


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions