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

Add type annotations to controllers/plex.py #832

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Conversation

emontnemery
Copy link
Collaborator

No description provided.


# The episode_title property is added to MediaStatus objects
@property # type: ignore[misc]
def episode_title(self: PlexMediaStatus) -> str | None:
Copy link
Contributor

Choose a reason for hiding this comment

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

This is weird. I'd make this a regular function if it's needed to be separate from the class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it's very weird, I didn't want to clean it up in this PR though

@emontnemery emontnemery merged commit 7c808e9 into master Feb 13, 2024
1 check passed
@emontnemery emontnemery deleted the type_annotate_plex branch February 13, 2024 09:35
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