File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 66# Authors: Michael Scott Asato Cuthbert
77# Christopher Ariza
88#
9- # Copyright: Copyright © 2008-2024 Michael Scott Asato Cuthbert
9+ # Copyright: Copyright © 2008-2025 Michael Scott Asato Cuthbert
1010# License: BSD, see license.txt
1111# -----------------------------------------------------------------------------
1212'''
@@ -658,9 +658,12 @@ def cleanup(self) -> None:
658658 self .reset ()
659659
660660 # cleanupOnStop is rarely used, so we put in
661- # a dummy stream so that srcStream does not need
662- # to be x|None
663- SrcStreamClass = t .cast (type [StreamType ], self .srcStream .__class__ )
661+ # a dummy stream so that self.srcStream does not need
662+ # to be typed as Stream|None
663+
664+ # eventually want this to work
665+ # SrcStreamClass = t.cast(type[StreamType], self.srcStream.__class__)
666+ SrcStreamClass = self .srcStream .__class__
664667
665668 del self .srcStream
666669 del self .srcStreamElements
You can’t perform that action at this time.
0 commit comments