Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and enable Ruff lints PYI002, PYI026 #496

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Oct 22, 2023

These affect rest_framework-stubs/compat.pyi which is using some weird hacks that Ruff and mypy don't really like.

  • PYI002: If test must be a simple comparison against sys.platform or sys.version_info
  • PYI026: Use typing_extensions.TypeAlias for type aliases

Related issues

These were deferred from #488.

intgr added 2 commits December 8, 2023 15:29
These affect `rest_framework-stubs/compat.pyi` which is using some weird hacks that Ruff and mypy don't really like.

* PYI002: If test must be a simple comparison against sys.platform or sys.version_info
* PYI026: Use typing_extensions.TypeAlias for type aliases
@intgr intgr requested a review from sobolevn December 8, 2023 13:46
@sobolevn sobolevn merged commit 7b71a60 into typeddjango:master Mar 19, 2024
12 checks passed
@intgr intgr deleted the ruff-lints-part1 branch March 19, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants