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

Avoid incompatible overrides #276

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

andlaus
Copy link
Collaborator

@andlaus andlaus commented Mar 4, 2024

This PR fixes the incompatible overrides of from_et() methods which require additional arguments by renaming them to .{foo}_from_et() (e.g. Limit.limit_from_et()). Some type checkers complain about this, IMO rightfully so.

Besides this, as a drive-by I've updated the README so that the snippets outlined there work with the latest odxtools version. (I don't think that this changelet merrits its own PR.)

Andreas Lauser <[email protected]>, on behalf of MBition GmbH.
Provider Information

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Gerrit Ecke <[email protected]>
@andlaus andlaus requested a review from kayoub5 March 4, 2024 12:30
if the class containing such a method is derived from another class
(like e.g. `NamedElement`), some linters complain that the derived
class overrides the method in an incompatible way. (IMO these
complaints are justified.)

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Gerrit Ecke <[email protected]>
@andlaus andlaus merged commit 4b98fbe into mercedes-benz:main Mar 4, 2024
7 checks passed
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