If using py.path.local, we will have to skip errors regarding py.path for mypy. I chose to propose this change instead, as py.path.local is not the modern solution - pathlib.Path is.
The mypy errors that this removes:
sybil/integration/pytest.py:15: error: Skipping analyzing "py.path": module is installed, but missing library stubs or py.typed marker [import-untyped]
sybil/integration/pytest.py:15: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
sybil/integration/pytest.py:15: error: Skipping analyzing "py": module is installed, but missing library stubs or py.typed marker [import-untyped]
In pytest7.0.0, there were changes made which make this change possible.
If using
py.path.local
, we will have to skip errors regardingpy.path
formypy
. I chose to propose this change instead, aspy.path.local
is not the modern solution -pathlib.Path
is.The
mypy
errors that this removes:In
pytest
7.0.0
, there were changes made which make this change possible.See https://docs.pytest.org/en/7.1.x/changelog.html#id48. That changelog includes:
and:
I also brought in the exact type hint from the parent class's
reportinfo
method.I did not change any tests as these will not be type checked.