PTB-MR / mrpro

MR image reconstruction and processing
Apache License 2.0
9 stars 3 forks source link

homogenize delayed annotation evaluation in all files #311

Open fzimmermann89 opened 1 week ago

fzimmermann89 commented 1 week ago

Might be useful for consistency to always from __future__ import annotations

This can be done using ruff:

[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]

@schuenke : what do you think?

..or only do it when it is really required. currently, we do it in a lot of random files.

schuenke commented 1 week ago

do we still need it when we use the from typing import Self style?

fzimmermann89 commented 1 week ago

..or remove them from all files and see where we actually need them.