You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for fixing it! Sorry, it might take a while before I get back to the code that for me generates this error, so probably you shouldn't wait for me.
Seems to work, though I'm getting a .venv/lib/python3.10/site-packages/cattrs/converters.py:541: error: Invalid "type: ignore" comment mypy error on master
Activity
Tinche commentedon Jun 20, 2022
Thanks, I'm aware of this (there's another, similar issue), it's on my radar for the next version. Just out of curiosity, if you change the line to
i.e. single quotes to double quotes, does it fix it?
phiresky commentedon Jun 20, 2022
Yes, that does seem to fix it. Though I'm not sure if I would trust all types to not contain a
"either.Tinche commentedon Jun 20, 2022
Yeah, the play might be to just escape any single quotes in the repr.
Tinche commentedon Sep 18, 2022
@phiresky this should be fixed on
main, can you verify before I release the next version?phiresky commentedon Sep 18, 2022
Thanks for fixing it! Sorry, it might take a while before I get back to the code that for me generates this error, so probably you shouldn't wait for me.
phiresky commentedon Sep 21, 2022
Seems to work, though I'm getting a
.venv/lib/python3.10/site-packages/cattrs/converters.py:541: error: Invalid "type: ignore" commentmypy error on masterTinche commentedon Sep 21, 2022
Confirmed. Will test on 3.7 too before removing the comment.
Tinche commentedon Sep 21, 2022
I fixed it by removing the comment, seems to work fine. Give it one more test for me? <3
aarnphm commentedon Sep 21, 2022
I'm I thought that mypy also accept
# type: ignoresyntax 🤔Tinche commentedon Sep 21, 2022
It does. It can be configured to not take it though, which I think is happening (at least for me, I have that option set up).
aarnphm commentedon Sep 22, 2022
got it. I think I also configure it to accept the syntax on pyright end. Removing it makes sense then.
chore(deps): Update cattrs requirement from <22.2,>=1.8 to >=1.8,<22.…