mirror of
https://github.com/iluvcapra/pycmx.git
synced 2026-01-01 17:30:55 +00:00
Update channel_map.py
Added some typing
This commit is contained in:
@@ -2,13 +2,14 @@
|
|||||||
# (c) 2018 Jamie Hardt
|
# (c) 2018 Jamie Hardt
|
||||||
|
|
||||||
from re import (compile, match)
|
from re import (compile, match)
|
||||||
|
from typing import Dict, Tuple
|
||||||
|
|
||||||
class ChannelMap:
|
class ChannelMap:
|
||||||
"""
|
"""
|
||||||
Represents a set of all the channels to which an event applies.
|
Represents a set of all the channels to which an event applies.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_chan_map = {
|
_chan_map : Dict[str, Tuple] = {
|
||||||
"V" : (True, False, False),
|
"V" : (True, False, False),
|
||||||
"A" : (False, True, False),
|
"A" : (False, True, False),
|
||||||
"A2" : (False, False, True),
|
"A2" : (False, False, True),
|
||||||
@@ -109,3 +110,4 @@ class ChannelMap:
|
|||||||
out_a = self._audio_channel_set | other._audio_channel_set
|
out_a = self._audio_channel_set | other._audio_channel_set
|
||||||
|
|
||||||
return ChannelMap(v=out_v,audio_channels = out_a)
|
return ChannelMap(v=out_v,audio_channels = out_a)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user