Skip to content

Add self as the first argument to method#468

Merged
aaronayres35 merged 1 commit into
masterfrom
self-as-first-arg
Dec 7, 2020
Merged

Add self as the first argument to method#468
aaronayres35 merged 1 commit into
masterfrom
self-as-first-arg

Conversation

@aaronayres35

Copy link
Copy Markdown
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