I just realized you can't annotate sentinels in Python. For example, it's impossible to annotate a function that could return sys.monitoring.DISABLE. Seems like a missing piece :(


welcome to the club. maybe literal type with reference values support could solve this?


United States Xu hướng
Loading...

Something went wrong.


Something went wrong.