Skip to content

Commit

Permalink
t.cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Jan 2, 2024
1 parent 463dc24 commit e314417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music21/converter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e314417

Please sign in to comment.