@tiangao_coder
Tian Gao
6 months
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 :(
1
0
11

Replies

@nicongdev
nk
6 months
@tiangao_coder welcome to the club. maybe literal type with reference values support could solve this?
0
0
0