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

update credits even without a sink #398

Merged
merged 2 commits into from Jan 11, 2024
Merged

update credits even without a sink #398

merged 2 commits into from Jan 11, 2024

Conversation

barbibulle
Copy link
Collaborator

Even if the RFComm session has no sink (not very useful, but could happen in a test), we still need to update the credits.

self.sink(data) # pylint: disable=not-callable
if data:
if self.sink:
self.sink(data) # pylint: disable=not-callable
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we have annotation now, it is no longer needed.

Suggested change
self.sink(data) # pylint: disable=not-callable
self.sink(data)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I still get a pylint error without that comment:
bumble/rfcomm.py:543:16: E1102: self.sink is not callable (not-callable)

@barbibulle barbibulle merged commit 95b0d6c into main Jan 11, 2024
51 checks passed
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