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
Initially I thought this is related to #5738, but actually converters are heavily special-cased in mypy attrs plugin, essentially this bug is a duplicate of #5313
I originally had this question on stack overflow almost a week ago https://stackoverflow.com/questions/60029635/how-can-i-use-tuple-as-a-converter-to-attr-ib-without-upsetting-mypy. As I haven't received any answers for it, I've decided to post it here in the hope that someone may know how it should be addressed.
When I try to run mypy against this code
I get the following error message:
If I define a wrapper function like this one
and use it to set the converter parameter
then mypy becomes happy. Is this the only way or is there a better one?
The text was updated successfully, but these errors were encountered: