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/receiver.py #796

Merged
merged 1 commit into from Jan 18, 2024

Conversation

emontnemery
Copy link
Collaborator

No description provided.

@@ -15,8 +15,11 @@
REQUEST_TIMEOUT,
SESSION_ID,
)
from ..generated.cast_channel_pb2 import ( # pylint: disable=no-name-in-module
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this always be the case for generated modules that pylint doesn't understand them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems like it, yes.
Pylint actually very recently gained support for pyi stub files pylint-dev/pylint#4987, but I guess the support is still rough around the edges.

For example, this comment mentions something very similar: pylint-dev/pylint#4987 (comment)

I think this is why it doesn't work: pylint-dev/pylint#9185

@emontnemery emontnemery merged commit 8b16e86 into master Jan 18, 2024
1 check passed
@emontnemery emontnemery deleted the type_annotations_controllers_receiver branch January 18, 2024 15:37
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

2 participants