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

Pylint prefers class attributes be defined in __init__ #309

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

jcpunk
Copy link
Contributor

@jcpunk jcpunk commented Feb 6, 2025

The content of these attributes is reset under self.map_signal_paths() but pylint complains that these attributes are not set in the class constructor.

This change should be invisible and not cause any unexpected behavior.

The behavior of the class attributes self._tproc, self._streamer, and self.autoproxy look to have a more complex flow and I'm ignoring them for now since there is a path in the constructor that sets them.

@meeg meeg merged commit 8d350ed into openquantumhardware:main Feb 7, 2025
1 check passed
@jcpunk jcpunk deleted the class-best-practices branch February 7, 2025 14:10
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.

3 participants