Skip to content

Conversation

@almarklein
Copy link
Member

@almarklein almarklein commented Jan 9, 2026

Passing args or kwargs to object.__init__() gives a silly error messages saying "object.init() takes exactly one argument (the instance to initialize)". When a user has a typo in one of rendercanvas's kwargs, this is not helpful.

This PR detects the case and adds a note to the exception to clarify the situation.

@almarklein almarklein merged commit 8bbb98d into main Jan 19, 2026
38 of 39 checks passed
@almarklein almarklein deleted the report-kwarg-typos branch January 19, 2026 12:11
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