openSUSE / orthos2

Orthos is a machine administration tool.
GNU General Public License v2.0
14 stars 12 forks source link

Linter and typing cleanup #268

Open SchoolGuy opened 2 weeks ago

SchoolGuy commented 2 weeks ago

The goal of this PR is to improve the typing of the Orthos 2 codebase with mypy/pyright. Since Django Upstream sees the Python typing landscape as too volatile we are utilizing https://github.com/typeddjango/django-stubs for this.

We cannot use django-stubs-ext since this requires hotpatching of certain classes at runtime, since the django-stubs projects aren't packaged in openSUSE and SLES we cannot use it.