chrysn / aiocoap

The Python CoAP library
Other
262 stars 119 forks source link

Use Enum as a base for ExtensibleEnum (for mypy), and more mypy adjustments #347

Closed chrysn closed 1 month ago

chrysn commented 1 month ago

It's not really a good fit, but has one thing going: https://github.com/chrysn/aiocoap/pull/336 (CC'ing @Codeglitches) needs to introduce type information and # type: ignore for each and every line in an ExtensibleIntEnum, and it'd be a lot nicer if we could use mypy's special handling.

Not sure where this is going, publishing it as a draft PR for the moment. See #336 for the main effort behind it.

chrysn commented 1 month ago

This has become more than just the enums, and is effectively the follow-up to #336.