News for hackers. Stuff that matters.
Re:Python type hints may not be not for me in practice by Cerealkiller050 on Wednesday November 27, 2024 @08:43PM (#42261604)
Dealing with this currently in a giant old legacy python 2.7 codebase that was migrated to 3.10 in the past year. I do see the requirement @ 3.12, is there a specific reason for this that wouldn't be available to 3.10?
Re:Python type hints may not be not for me in practice by emeryberger on Wednesday November 27, 2024 @08:50PM (#42261640)
It relies on some features introduced in Python 3.12, specifically the `sys.monitoring` API.
Re:Python type hints may not be not for me in practice by emeryberger on Wednesday November 27, 2024 @08:51PM (#42261643)
However, the resulting type annotations should work for Python 3.9+.