Closed cjcodeproj closed 3 months ago
MyPy 1.10.0 never complained about the notation. The code doesn't even return a None value, just a string (which could technically be empty).
Current coding environment is Python 3.12.3, but two months ago it was Python 3.11.
So Python 3.9.6 does not like this.
(Actual code)
https://github.com/cjcodeproj/musicscan/blob/c542e5108cda882a7559f08fac89d68c81b17646/src/musicscan/data/stringtools.py#L71-L83
Works fine in Python 3.12.3
Will have to investigate.