Skip to content

Added a note to the contributor guideline to avoid numpy scalars as a… - #7773

Merged
Schefflera-Arboricola merged 2 commits into
networkx:mainfrom
akshitasure12:fix-for-issue-7349
Dec 21, 2024
Merged

Schefflera-Arboricola merged 2 commits into
networkx:mainfrom
akshitasure12:fix-for-issue-7349

Conversation

@akshitasure12

@akshitasure12 akshitasure12 commented Dec 18, 2024 •

Copy link
Copy Markdown
Contributor

Added a note in contributing.rst under the guidelines section to avoid using numpy scalars as a return type.

Related Issues :

Fixes #7349

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This informs the contributor but doesn't help them actually convert to python type. Can you give an example usage of a.item()?
Thanks!

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
Thanks!

@Schefflera-Arboricola
Schefflera-Arboricola merged commit c34400f into networkx:main Dec 21, 2024
@jarrodmillman jarrodmillman added this to the 3.5 milestone Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Handling numpy scalars in contributor guide

4 participants