henry0312 / pytest-pydocstyle

pytest plugin to run pydocstyle
MIT License
14 stars 3 forks source link

Replace `fspath` argument for Node constructors with `pathlib.Path` #82

Closed henry0312 closed 2 years ago

henry0312 commented 2 years ago

https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path

../../../../../../../../../Users/henry/.pyenv/versions/3.9.10/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_pytest/nodes.py:140
  /Users/henry/.pyenv/versions/3.9.10/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_pytest/nodes.py:140: PytestRemovedIn8Warning: The (fspath: py.path.local) argument to File is deprecated. Please use the (path: pathlib.Path) argument instead.
  See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path
    return super().__call__(*k, **kw)