Revised release notes are available in the [documentation](https://pypsa.readthedocs.io/en/latest/references/release-notes.html).
What's Changed
* correct indexing to select gens with set e_sum attributes by cpschau in https://github.com/PyPSA/PyPSA/pull/1069
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/PyPSA/PyPSA/pull/1072
* fix: align variables and coefficients in generators_contraints by FabianHofmann in https://github.com/PyPSA/PyPSA/pull/1074
* test: add model tests by lkstrp in https://github.com/PyPSA/PyPSA/pull/1080
* Bugfix: correctly set capacity factors in stochastic prog. example by koen-vg in https://github.com/PyPSA/PyPSA/pull/1087
* ci: fix macos runner by lkstrp in https://github.com/PyPSA/PyPSA/pull/1088
* docs: add user and fix example links by lkstrp in https://github.com/PyPSA/PyPSA/pull/1089
* chore: update issue templates and labels by lkstrp in https://github.com/PyPSA/PyPSA/pull/1092
**Full Changelog**: https://github.com/PyPSA/PyPSA/compare/v0.31.1...v0.31.2