sbdchd / django-types

:doughnut: Type stubs for Django
MIT License
187 stars 62 forks source link

Use PEP-585 standard generic collections #184

Closed hamdanal closed 1 year ago

hamdanal commented 1 year ago

Ran ruff with "UP006" rule autofixes for PEP-585 upgrades and some other relevant rules.

Ruff runs now as part of the linters to make sure that the library stays up-to-date. When running ./s/lint locally, it autofixes the errors inplace. When run in CI, it just prints them to the terminal. This is similar to how black and isort are invoked.

hamdanal commented 1 year ago

As discussed in https://github.com/sbdchd/django-types/pull/183#issuecomment-1694508169. The commented out ruff rules in pyproject.toml will be activated in following PRs, otherwise it will be very difficult to review all the changes.