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: explicitly set Reported attributes and type #136

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

jhgjeraker
Copy link
Member

@jhgjeraker jhgjeraker commented Apr 17, 2024

Until now, the Reported class implicitly set all events (except LabelsChanged) to None, then populated as required. This worked, but would not satisfy linters and auto-completion. We now explicitly set the available event types to none as a class attribute, then populate as before. Now linting and auto-completion should work as desired.

I've also added stronger typing to some variables that were inferred. This has no practical effect other than consistency.

@jhgjeraker jhgjeraker merged commit dce3031 into main Apr 17, 2024
6 checks passed
@jhgjeraker jhgjeraker deleted the explicit-reported-attributes branch April 17, 2024 06:58
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.

None yet

1 participant