Skip to content

fix: explicitly set Reported attributes and type#136

Merged
jhgjeraker merged 1 commit intomainfrom
explicit-reported-attributes
Apr 17, 2024
Merged

fix: explicitly set Reported attributes and type#136
jhgjeraker merged 1 commit intomainfrom
explicit-reported-attributes

Conversation

@jhgjeraker
Copy link
Copy Markdown
Collaborator

@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
@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.

1 participant