You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
${NO_COLOR}, first introduced under Python 3.13 and taking precedence over ${FORCE_COLOR}.
${FORCE_COLOR}, first introduced under [we have no idea].
${PYTHON_COLOR}, which is unique to the Python interpreter itself and thus irrelevant for our purposes. Begone, foulest environment variable!
@beartype currently supports a @beartype-specific ${BEARTYPE_IS_COLOR} tri-state environment variable enabling end users to externally control colourization of @beartype output. That's great – but insufficient. Instead, @beartype should:
If ${BEARTYPE_IS_COLOR} is explicitly set, defer to that.
Else if ${NO_COLOR} is explicitly set, defer to that.
Else if ${FORCE_COLOR} is explicitly set, defer to that.
Beartype: I have a blistering headache already and it's only Tuesday. 🥴
The text was updated successfully, but these errors were encountered:
This feature request to my older self ...hi, older self! really hope you got your hair back somehow is to remind myself that Python supports various environment variables to globally control color output across both the Python interpreter itself and third-party packages:
${NO_COLOR}
, first introduced under Python 3.13 and taking precedence over${FORCE_COLOR}
.${FORCE_COLOR}
, first introduced under [we have no idea].${PYTHON_COLOR}
, which is unique to the Python interpreter itself and thus irrelevant for our purposes. Begone, foulest environment variable!@beartype currently supports a @beartype-specific
${BEARTYPE_IS_COLOR}
tri-state environment variable enabling end users to externally control colourization of @beartype output. That's great – but insufficient. Instead, @beartype should:${BEARTYPE_IS_COLOR}
is explicitly set, defer to that.${NO_COLOR}
is explicitly set, defer to that.${FORCE_COLOR}
is explicitly set, defer to that.Beartype: I have a blistering headache already and it's only Tuesday. 🥴
The text was updated successfully, but these errors were encountered: