You have a main project with .python-version and a subfolder that also has one. The innermost file wins. This is usually what you want, but can surprise newcomers.
: Hardcodes the version in the FROM instruction of a Dockerfile .
Often preferred for specific Machine Learning projects due to library compatibility [5.2]. The "80/20" Efficiency Rule