9009a7c5bc
- Created type stubs for various modules in the mido library including messages, midifiles, parser, ports, sockets, syx, tokenizer, and version. - Implemented type hints for functions and classes to improve type checking and code clarity. - Added support for MIDI over TCP/IP in sockets module. - Included methods for reading and writing SYX files in syx module. - Enhanced the parser functionality with a dedicated Parser class for MIDI byte streams. - Established a structure for MIDI file handling with MidiFile and MidiTrack classes.
16 lines
344 B
Python
16 lines
344 B
Python
"""
|
|
This type stub file was generated by pyright.
|
|
"""
|
|
|
|
from .specs import MsgDict
|
|
|
|
def msg2str(msg: MsgDict, include_time: bool = True) -> str:
|
|
...
|
|
|
|
def str2msg(text: str) -> MsgDict:
|
|
"""Parse str format and return message dict.
|
|
|
|
No type or value checking is done. The caller is responsible for
|
|
calling check_msgdict().
|
|
"""
|