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

Fix initialization order in EtasBus #1704

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

lumagi
Copy link
Collaborator

@lumagi lumagi commented Dec 7, 2023

super.__init__ calls set_filters, which is only permissible after the corresponding structures have been created in the child constructor. Hence, super.__init__ must be called after the child has finished initialization. Fixes #1693

super.__init__ calls set_filters, which is only permissible
after the corresponding structures have been created in the child
constructor. Hence, super.__init__ must be called after the child has
finished initialization. Fixes hardbyte#1693
Copy link
Collaborator

@zariiii9003 zariiii9003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@zariiii9003 zariiii9003 merged commit 033be12 into hardbyte:main Dec 8, 2023
28 checks passed
@lumagi lumagi deleted the fix_etas_init branch December 8, 2023 08:52
@luojiaaoo
Copy link
Contributor

I also had this problem when upgrading 4.3.0, I think python-can needs to release a smaller version soon to avoid this problem, like 4.3.1🤭

@lumagi
Copy link
Collaborator Author

lumagi commented Dec 11, 2023

@luojiaaoo v4.3.1 will be released soon, see #1706

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.

In EtasBus _apply_filters, self._oci_filters is not defined when EtasBus init called with version 4.3.0
3 participants