From e3144178c814a2c5ae291bb8c68c43e78ba79ad8 Mon Sep 17 00:00:00 2001 From: Michael Scott Asato Cuthbert Date: Tue, 2 Jan 2024 13:34:49 -1000 Subject: [PATCH] t.cast --- music21/converter/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music21/converter/__init__.py b/music21/converter/__init__.py index 01a442e92..181c93889 100644 --- a/music21/converter/__init__.py +++ b/music21/converter/__init__.py @@ -475,7 +475,7 @@ def unregisterSubConverter( _deregisteredSubConverters.append('all') return - removeSubConverter = cast(Type[SubConverter], removeSubConverter) + removeSubConverter = t.cast(Type[SubConverter], removeSubConverter) try: _registeredSubConverters.remove(removeSubConverter) except ValueError: @@ -928,7 +928,7 @@ def subConvertersList( if unregistered == 'all': continue try: - unregistered = cast(Type[SubConverter], unregistered) + unregistered = t.cast(Type[SubConverter], unregistered) subConverterList.remove(unregistered) except ValueError: pass