Skip to content
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

Improve error messages when using non classvar type annotation #121

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

saulshanabrook
Copy link
Member

Previously, if you did something like x: str in a classbody there would be an odd error, since it wouldn't be able to resolve the __egg_decls__. This fixes it to be more descriptive.

Thanks for raising Adrian on Zulip: https://egraphs.zulipchat.com/#narrow/stream/375765-egg.2Fegglog/topic/First.20time.20user.20of.20python.20bindings/near/421756317

Previously, if you did something like `x: str` in a classbody
there would be an odd error, since it wouldn't be able to resolve
the `__egg_decls__`. This fixes it to be more descriptive.

See https://egraphs.zulipchat.com/#narrow/stream/375765-egg.2Fegglog/topic/First.20time.20user.20of.20python.20bindings/near/421756317
@saulshanabrook saulshanabrook merged commit 2812a4a into main Feb 16, 2024
11 checks passed
@saulshanabrook saulshanabrook deleted the better-error-messages branch February 16, 2024 16:39
Copy link

codspeed-hq bot commented Feb 16, 2024

CodSpeed Performance Report

Merging #121 will not alter performance

Comparing better-error-messages (020345f) with main (e25523c)

Summary

✅ 7 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant