Skip to content

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Aug 20, 2025

Extracted from #14038 with a few additional changes. Should reduce changes in that PR

Changes:

There seems to have been a bit on confusion regarding these stubs recently, let's take the time to properly review these changes, and discuss any uncertainty (whilst I do think this PR is correct, I could be wrong)

CC @srittau @TomerGodinger

@github-actions

This comment has been minimized.

Comment on lines +88 to +93
# Overriden in __init__ to always raise
def add_edge(self, u_of_edge: _Node, v_of_edge: _Node, **attr: Unused) -> NoReturn: ...
def add_edges_from(self, ebunch_to_add: Iterable[_EdgePlus[_Node]], **attr: Unused) -> NoReturn: ...
def add_weighted_edges_from(
self, ebunch_to_add: Iterable[tuple[_Node, _Node, float]], weight: str = "weight", **attr: Unused
) -> NoReturn: ...
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This isn't strictly necessary and I don't mind removing it from the PR if unwanted

@github-actions

This comment has been minimized.

@Avasam Avasam requested a review from charmoniumQ August 20, 2025 18:40
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@charmoniumQ

This comment was marked as resolved.

@gandhis1

This comment was marked as resolved.

@Avasam

This comment was marked as resolved.

@Avasam
Copy link
Collaborator Author

Avasam commented Sep 17, 2025

Extracted reportviews.pyi changes to #14732

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 9fecaca into python:main Nov 3, 2025
48 checks passed
@Avasam Avasam deleted the merge-networkx-Graph-classes-from-python-type-stubs branch November 3, 2025 03:36
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.

networkx: Types for Graph properties are more general than required

5 participants