Closed jaraco closed 1 year ago
It's true that the jaraco
module doesn't have an attribute env
. That is, unless you've installed jaraco.env
, in which case, there it is.
And it's present in the test environment where the error occurs:
pip-run main @ ls .tox/py/lib/python3.11/site-packages/jaraco
__pycache__ context.py env.py functools path.py test text
According to this answer, it's a known bug in mypy since 0.700, but that doesn't explain why tests passed three weeks ago.
I don't see anything relevant in the changelog (after a brief scan and search for 'import').
Downgrading to mypy 1.4.1 bypasses the failure.
I tried downgrading to 1.4.1 and I thought the problem was fixed, but I'd forgotten I'd put another workaround in place (re-wording the import).
Maybe the change is due to the introduction of py.typed
to jaraco.functools
.
Indeed, downgrading jaraco.functools
to <3.9
works around the issue, implicating https://github.com/jaraco/jaraco.functools/pull/22.
mypy tests have started failing with: