-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Removes quotes from annotations
removes quotes from literal values
#2613
Comments
Thank you, I'll fix this tonight and cut a new release. |
Breaking pypa/build too: https://github.com/pypa/build/pull/576/files - PathType = Union[str, 'os.PathLike[str]']
+ PathType = Union[str, os.PathLike[str]]
- _TProjectBuilder = TypeVar('_TProjectBuilder', bound='ProjectBuilder')
+ _TProjectBuilder = TypeVar('_TProjectBuilder', bound=ProjectBuilder) These are both broken. |
Also, I'd really love for a way to see see fixed operaitons too. I have no idea what rules were applied when things are "fixed". Maybe there's a flag I missed? |
In the For example, this doesn't raise an error: from __future__ import annotations
from typing import Literal
x: Literal["x86_64", "arm64"] But this does: from __future__ import annotations
from .typing import Literal
x: Literal["x86_64", "arm64"] We use |
There's a |
I can add support for relative import paths with |
I can see a diff of what changed via git, I just can't see the list of rules that were applied to make those changes. For example, if I make a fixable change to a Ruby file and run rubocop:
I can see exactly what rules were applied in the fixes. Something like |
The typing modules issue has bit before, it's #2005. |
Gonna try and fix that tonight. |
Thanks for the really fast action :) ❤️ |
It looks like #2431 also removes quotes from literal values in type annotation
In general, when bump ruff from 0.0.237 to 0.0.242 the following change is generated by ruff:
to
cibuilwheel PR with visible problem
pypa/cibuildwheel#1412
The change, when force revert changes
pypa/cibuildwheel@
923fd3c
(#1412)And log from ruff:
https://results.pre-commit.ci/run/github/85508223/1675723555.oUgkXTipRmOlnOPISWV1OA
ruff configuration https://github.com/pypa/cibuildwheel/blob/e42277a69204ccfae9a1f4ae3b574eaa54109925/pyproject.toml#L120
The text was updated successfully, but these errors were encountered: