h11 icon indicating copy to clipboard operation
h11 copied to clipboard

provide a new version of Connection that returns/accepts enum types for PAUSED/NEED_DATA our_role their_role etc

Open graingert opened this issue 3 years ago • 1 comments

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

graingert avatar Jun 19 '22 19:06 graingert

see also https://github.com/python-hyper/h11/pull/144 and https://discuss.python.org/t/pep-661-sentinel-values/9126/1

graingert avatar Jun 19 '22 19:06 graingert