Skip to content

Conversation

@hoechenberger
Copy link
Member

@hoechenberger hoechenberger commented Aug 2, 2024

This is what I get on main (VS Code, Pylance; latest releases)

Screenshot 2024-08-02 at 11 46 43

This is what I get with this PR

Screenshot 2024-08-02 at 11 45 00

@hoechenberger
Copy link
Member Author

CircleCI complains:

/home/circleci/project/mne/epochs.py:docstring of mne.epochs.BaseEpochs.average:1: WARNING: py:class reference target not found: numpy.float64 [ref.class]

I'm a bit confused, I thought np.float64 was introduces quite a long time ago 🤔

@larsoner
Copy link
Member

larsoner commented Aug 2, 2024

From dumping the intersphinx registry with

python -m intersphinx_registry.lookup numpy > ~/Desktop/numpy.txt

I checked and it's listed under py:attribute rather than py:class

@hoechenberger
Copy link
Member Author

so it's a bug in the intersphinx file?

@larsoner
Copy link
Member

larsoner commented Aug 3, 2024

Could be a bug with their doc, or with the type handling in sphinx / autodoc / numpydoc, or could be something that we should add some ignore line for, not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants