-
Notifications
You must be signed in to change notification settings - Fork 31
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
[Bug] Pass challenges with raise
#88
Comments
Yes, this is a known issue. I haven't thought of good ways to solve it |
Took another look. "advanced-forward" should be easy to fix, but never2 is hard, as I haven't found a way to force pyright to fail.. |
If we can insert some imports before user_code and add
# advanced-forward-fix
## End of your code ##
+# pyright: analyzeUnannotatedFunctions=false
from typing import assert_type
inst = MyClass(x=1)
assert_type(inst.copy(), MyClass) |
Actually, I find that pyright will ignore whatever code following So it really seems to have no solution.. |
Using sourcery is a no-go, using mypy maybe could be an option but certainly would complicate things. Another option is to create a special rule just for |
Bug description
If
# expect-type-error
not intest_code
, challenge can pass withraise
.Challenges
The text was updated successfully, but these errors were encountered: