Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented May 9, 2025

Whilst merging stubs from https://github.com/microsoft/python-type-stubs/tree/main/stubs/networkx , I noticed a lot of missing functions. This is a follow-up to #13956

There's 3 categories of new stubtest allowlist entries: 1 to avoid a crash, and 2 idk why they happen.

@Avasam Avasam marked this pull request as draft May 9, 2025 03:59

This comment has been minimized.

Comment on lines +41 to +49
# "..._DT is not present at runtime" but we don't set it in stubs, I don't understand this one
networkx(\.algorithms)?(\.tree)?(\.mst)?\.SpanningTreeIterator\.Partition\._DT
networkx(\.algorithms)?(\.tree)?(\.branchings)?\.ArborescenceIterator\.Partition\._DT

# variable differs from runtime type abc.ABCMeta
networkx.classes.reportviews.EdgeView.dataview
networkx.classes.reportviews.InEdgeView.dataview
networkx.classes.reportviews.OutEdgeView.dataview
networkx.classes.reportviews.OutMultiEdgeView.dataview
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These two issues I don't understand. I'm not sure if it's something I should do differently, just ignore, and/or report to mypy/stubtest

This comment has been minimized.

@Avasam Avasam marked this pull request as ready for review May 10, 2025 17:44

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

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

@srittau srittau merged commit f0c88fd into python:main May 12, 2025
72 checks passed
@Avasam Avasam deleted the networkx--`ignore_missing_stub-=-false` branch May 12, 2025 15:38
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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