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: get state_reader via function #90

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

rhizoome
Copy link

this is not much better, but the function name documents what is happening

@rhizoome rhizoome force-pushed the jlf/fix-get-state_reader-via-function branch from 3df3de7 to da7c374 Compare March 13, 2024 19:28
Copy link
Member

@winged winged left a comment

Choose a reason for hiding this comment

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

LGTM, just a naming suggestion. Do with it as you wish :-)

_state_reader: SystemStateReader | None = None


def get_state_reader():
Copy link
Member

Choose a reason for hiding this comment

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

We could probably do without the get_ prefix, I think it's just as readable / understandable if the function's just called state_reader().

@winged winged mentioned this pull request Mar 14, 2024
this is not much better, but the function name documents what is happening
@rhizoome rhizoome force-pushed the jlf/fix-get-state_reader-via-function branch from da7c374 to 5ecb270 Compare March 14, 2024 10:52
@rhizoome rhizoome merged commit 1d3cc44 into main Mar 14, 2024
1 check passed
@rhizoome rhizoome deleted the jlf/fix-get-state_reader-via-function branch March 21, 2024 01:25
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