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
Following up on issue HypothesisWorks/hypothesis#3753: the failing example in that issue always shows the test.py file as the originating file, which is incorrect:
test.py:1139:50: error: Cannot use a covariant type variable as a parameter [misc]
The file containing the failing type check is called from test.py.
To Reproduce
See the referenced issue: install Hypothesis and mypy using the mentioned versions, and run the example.
Expected Behavior
Error location should show the file that contains the failing type check.
Actual Behavior
Error location shows the file file that contains the call to the failing type check.
Is it okay if I use this thread to show my discoveries of the bug, to get feedback? or is there other way to get some help if I am stuck ( If I am stuck for a week)?
Activity
PrathamLalwani commentedon Nov 9, 2023
@ilevkivskyi Can I contribute to this issue? This will be my first commit to the repo but have been writing python using mypy for years.
ilevkivskyi commentedon Nov 9, 2023
Yes, you can give it a try. I may be not the easiest bug to fix, but definitely an important one.
PrathamLalwani commentedon Nov 9, 2023
Is it okay if I use this thread to show my discoveries of the bug, to get feedback? or is there other way to get some help if I am stuck ( If I am stuck for a week)?
ilevkivskyi commentedon Nov 9, 2023
Yes, you can post here (but I can't guarantee I will always reply quickly).
Do not use types as error contexts during type checking (python#22156)