Open graingert opened 2 years ago
the current Connection.next_event Event | type[_Sentinel] return type is slightly painful to work with. It would be useful to have a version that returns enum based sentinels instead
Event | type[_Sentinel]
see also https://github.com/python-hyper/h11/pull/144 and https://discuss.python.org/t/pep-661-sentinel-values/9126/1
the current Connection.next_event
Event | type[_Sentinel]
return type is slightly painful to work with. It would be useful to have a version that returns enum based sentinels instead