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 abstract members. #803

Merged
merged 18 commits into from
Dec 5, 2024
Merged

Add abstract members. #803

merged 18 commits into from
Dec 5, 2024

Conversation

knutnergaard
Copy link
Contributor

This PR adds abstract members to modules to handle [attr-defined] errors raised by mypy when methods defined only in subclasses are referenced in bases.

See error 5 on this list.

@knutnergaard knutnergaard marked this pull request as ready for review December 5, 2024 08:38
@knutnergaard
Copy link
Contributor Author

@benkiel I had to override the abstract members defined in _BaseGlyphVendor in BaseLayer to keep the class concrete. Ideally I guess these methods shouldn't be shared between BaseFont and BaseLayer from a common mixin, but this way, no refactoring is strictly necessary.

@knutnergaard knutnergaard deleted the abstract-members branch December 5, 2024 09:35
@knutnergaard knutnergaard restored the abstract-members branch December 5, 2024 11:31
@knutnergaard
Copy link
Contributor Author

@benkiel I inadvertently deleted the remote abstract-members branch, which seems to have closed this PR. Should be ok now. Can you reopen it?

@benkiel benkiel reopened this Dec 5, 2024
@benkiel
Copy link
Member

benkiel commented Dec 5, 2024

@knutnergaard reopened

@benkiel benkiel merged commit 4629a4b into robotools:v1 Dec 5, 2024
30 checks passed
@knutnergaard knutnergaard deleted the abstract-members branch December 5, 2024 16:03
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