Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tested using:
pylint src_py/midi.py
This PR reduces the pylint warnings down to this list:
Three TODOs, which are beyond the scope of a pylint pass, and one genuine error in the public interface. It appears that the
buffer_size
parameter passed to the midi.Output class is never used at all.I'll raise a separate issue about the
buffer_size
parameter.Disabled:
def quit(): # pylint: disable=redefined-builtin
This is a sort of generic problem across all pygame modules - that their quit functions shadow python's built-in
quit()
function. For example, if you do:You will call the
pygame.midi
modulesquit()
function rather than the built-inquit()
function. I don't think we can change this at this point, all those modulequit()
functions are out there now.