Documentation example doesn't work out of the box: metadata provider
Open
documentation
good first issue
help wanted
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 229
- PR merge metrics
- No merged PRs in 30d
Description
The example of getting code positions using ``PositionProvider`` no longer works, as the API has changed from ``libcst.PositionProvider`` to ``libcst.metadata.PositionProvider``.
Example at https://github.com/Instagram/LibCST/blob/master/docs/source/metadata.rst#metadata-apis.
Fixing this is obviously trivial, but was wondering if you'd considered setting up doctests to prevent this kind of mistake slipping in?
Contributor guide
Assessment
This issue has not been assessed yet.