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

Add self as the first argument to method #468

Merged
merged 1 commit into from
Dec 7, 2020
Merged

Conversation

aaronayres35
Copy link
Contributor

fixes #393

This PR simply adds self as the first argument to the draw_image abstract method.

I believe this was previously inconsequential because this method is always intended to be overridden. Those overriding it add the self argument. Apparently @abstractmethod doesn't strictly enforce the signature of the method, so subclasses / registered classes are free to change the signature.

In any case, this method should still take self as its first argument.

@aaronayres35 aaronayres35 merged commit 6935913 into master Dec 7, 2020
@jwiggins jwiggins deleted the self-as-first-arg branch December 7, 2020 13:50
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.

Method should have "self" as first argument.
2 participants