Skip to content

Add better panic for abnormal downcast error#5477

Merged
youknowone merged 1 commit intoRustPython:mainfrom
youknowone:better-downcast-error
Jan 21, 2025
Merged

Add better panic for abnormal downcast error#5477
youknowone merged 1 commit intoRustPython:mainfrom
youknowone:better-downcast-error

Conversation

@youknowone
Copy link
Member

The Expected payload... error in #5476 is common pitfall for new comers. This panic will help not to forget actually add the Constructor.

@arihant2math
Copy link
Contributor

Probably would have saved me some time on that PR 👍.

@youknowone youknowone merged commit db283a6 into RustPython:main Jan 21, 2025
@youknowone youknowone deleted the better-downcast-error branch January 21, 2025 04:54
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.

2 participants