-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
enable mypy "ignore-without-code" rule #12645
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
base: main
Are you sure you want to change the base?
Conversation
Enable mypy "ignore-without-code" rule and apply the necessary fixes.
8de1599
to
02350ef
Compare
In its current state zimports and mypy are fighting over what they want from https://github.com/sqlalchemy/sqlalchemy/pull/12645/files#diff-1e16143a522e36ab9806250b0ebee01057001cbd8d51d03db7336d9c8a762c0bR207-R209. Mypy wnats the |
yes, zimports has some deficiencies with imports that require comments. usually I put the imports into a condtiional like "if True:" in the hopes of getting zimports to skip over them. if we could improve zimports to maintain comments or have a more comprehensive "ignore" option that would solve other problems as well |
I saw a couple of comments referencing that and tried it, but no luck. To be honest I started working on this before 68cd3e8 landed and it was "equally broken" on main and my branch. |
maybe we can try to fix zimports to bend it to our will? actually there is sqlalchemyorg/zimports#43, let's try finishing that |
I've pushed a change to zimports that should support this usecase sqlalchemyorg/zimports#47 |
Awesome! Should I test it with this PR? I sould be able to just edit the dep in tox.ini, right? |
it's not yet released, once it is sure |
it has been released as 0.6.2 if you want to try it |
Description
Enable mypy "ignore-without-code" rule and apply the necessary fixes.
Not really a "small typing error fix" but I think that's the closest of the items from the checklist.
Checklist
This pull request is:
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
Fixes: #<issue number>
in the commit messageinclude a complete example of how the feature would look.
Fixes: #<issue number>
in the commit messageHave a nice day!