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

[2166] Update Watchdog Type Hints #2213

Merged
merged 2 commits into from
May 13, 2024

Conversation

Rixxan
Copy link
Contributor

@Rixxan Rixxan commented Apr 27, 2024

Description

Watchdog 4.0.0 included an update to the public API where FileSystemEvent, and subclasses, are now dataclasses, and their repr() has changed.

As such, (insofar as I can tell) the FileCreatedEvent is now a FileSystemEvent. MyPy also suggests that this is a FileSystemEvent as well. This type hint change should have no practical impact on the code, only how items that are calling this function expect data from it.

Type of Change

  • Minor Fix

How Has This Been Tested?

  • MyPy tests, boot tests, and minor gameplay time to ensure no new errors are generated.

Replacement for #2166

Watchdog 4.0.0 included an update to the public API where FileSystemEvent, and subclasses, are now dataclasses, and their repr() has changed.

As such, (insofar as I can tell) the FileCreatedEvent is now a FileSystemEvent. MyPy also suggests that this is a FileSystemEvent as well.
@Rixxan Rixxan added the dependencies Pull requests that update a dependency file label Apr 27, 2024
@Rixxan Rixxan added this to the 5.11.0 milestone Apr 27, 2024
@Rixxan Rixxan self-assigned this Apr 27, 2024
@Rixxan Rixxan added the Ready for Review PRs ready for review and merge label Apr 28, 2024
Copy link
Member

@C1701D C1701D left a comment

Choose a reason for hiding this comment

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

LGTM

@Rixxan Rixxan merged commit b8e8972 into EDCD:develop May 13, 2024
2 checks passed
@Rixxan Rixxan deleted the fix/2166/update-watchdog-typehints branch May 13, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Ready for Review PRs ready for review and merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants