While grokking the source code of http.HTTPStatus module, I came across this technique to add additional attributes to the values of enum members. Now, to understand what do I mean by adding attributes, let's consider the following example: # src.py from __future__ import annotations from enum import Enum class …