TIL how to use #Sphinx substitutions to generate documentation snippets based on #Python source code. Useful to avoid duplication (!) when listing available constants/enums/etc. and avoid the risk of the doc running out of sync.
Posted 2 years ago (30 September 2022)