From 183f121cfc9e556ad0ee44a4afb5decc0be3825e Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Wed, 16 Nov 2022 16:57:21 -0800 Subject: [PATCH] Update channel_map.py Added some typing --- pycmx/channel_map.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pycmx/channel_map.py b/pycmx/channel_map.py index 63678ea..eafc947 100644 --- a/pycmx/channel_map.py +++ b/pycmx/channel_map.py @@ -2,13 +2,14 @@ # (c) 2018 Jamie Hardt from re import (compile, match) +from typing import Dict, Tuple class ChannelMap: """ Represents a set of all the channels to which an event applies. """ - _chan_map = { + _chan_map : Dict[str, Tuple] = { "V" : (True, False, False), "A" : (False, True, False), "A2" : (False, False, True), @@ -109,3 +110,4 @@ class ChannelMap: out_a = self._audio_channel_set | other._audio_channel_set return ChannelMap(v=out_v,audio_channels = out_a) +