-
Notifications
You must be signed in to change notification settings - Fork 102
Replace validate_stubs
scripts with stubtest
#371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
debonte
merged 23 commits into
microsoft:main
from
Avasam:Replace-validate_stubs-scripts-with-stubtest
May 30, 2025
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
dbf819b
Replace validate_stubs scripts with stubtest
Avasam 986fbe8
Bump minimum CI Python version to 3.10 because of scipy-stubs
Avasam ba3ac03
Merge branch 'main' of https://github.com/microsoft/python-type-stubs…
Avasam 41a66b4
Post-merge and cross-versions checks fix
Avasam 179d50a
Merge branch 'main' of https://github.com/microsoft/python-type-stubs…
Avasam c88641f
Fix typos
Avasam c075039
Merge branch 'main' of https://github.com/microsoft/python-type-stubs…
Avasam da7a262
Fixed Python 3.13 cross-platform stubtest issues
Avasam 0b480e8
Fix all differences between Python 3.10 and 3.13 (on Windows)
Avasam 662db14
Missed an entry
Avasam e529bb0
Fix pyright re-export issues
Avasam 585b85a
Merge branch 'main' of https://github.com/microsoft/python-type-stubs…
Avasam 1edd30a
Merge branch 'main' of https://github.com/microsoft/python-type-stubs…
Avasam 72f5e8e
Merge branch 'main' of https://github.com/microsoft/python-type-stubs…
Avasam 5d980b3
Remove solved allowlist entries post merge
Avasam 920b14f
joblib already installed as dep
Avasam ac1c1da
Run ruff format
Avasam 7c2c30e
Forgot an unused import
Avasam 7a5a540
Discard changes to stubs/sklearn/feature_extraction/_dict_vectorizer.pyi
Avasam 0d2d6b1
Discard changes to stubs/sklearn/ensemble/_hist_gradient_boosting/pre…
Avasam 9537ef8
Discard changes to stubs/sklearn/ensemble/_hist_gradient_boosting/bin…
Avasam 6f295f8
Fix macOS run
Avasam d2743a5
Merge branch 'Replace-validate_stubs-scripts-with-stubtest' of https:…
Avasam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,12 @@ | ||
import gzip | ||
import os | ||
import os.path | ||
from itertools import islice | ||
from importlib.abc import Traversable | ||
from typing import Final | ||
|
||
from numpy.typing import ArrayLike | ||
|
||
from ..classes.graph import Graph | ||
|
||
__all__ = ["graph_atlas", "graph_atlas_g"] | ||
|
||
#: The total number of graphs in the atlas. | ||
#: | ||
#: The graphs are labeled starting from 0 and extending to (but not | ||
#: including) this number. | ||
NUM_GRAPHS: int = ... | ||
|
||
#: The absolute path representing the directory containing this file. | ||
THIS_DIR = ... | ||
|
||
#: The path to the data file containing the graph edge lists. | ||
#: | ||
#: This is the absolute path of the gzipped text file containing the | ||
#: edge list for each graph in the atlas. The file contains one entry | ||
#: per graph in the atlas, in sequential order, starting from graph | ||
#: number 0 and extending through graph number 1252 (see | ||
#: :data:`NUM_GRAPHS`). Each entry looks like | ||
#: | ||
#: .. sourcecode:: text | ||
#: | ||
#: GRAPH 6 | ||
#: NODES 3 | ||
#: 0 1 | ||
#: 0 2 | ||
#: | ||
#: where the first two lines are the graph's index in the atlas and the | ||
#: number of nodes in the graph, and the remaining lines are the edge | ||
#: list. | ||
#: | ||
#: This file was generated from a Python list of graphs via code like | ||
#: the following:: | ||
#: | ||
#: import gzip | ||
#: from networkx.generators.atlas import graph_atlas_g | ||
#: from networkx.readwrite.edgelist import write_edgelist | ||
#: | ||
#: with gzip.open('atlas.dat.gz', 'wb') as f: | ||
#: for i, G in enumerate(graph_atlas_g()): | ||
#: f.write(bytes(f'GRAPH {i}\n', encoding='utf-8')) | ||
#: f.write(bytes(f'NODES {len(G:Graph)}\n', encoding='utf-8')) | ||
#: write_edgelist(G:Graph, f, data=False) | ||
#: | ||
ATLAS_FILE = ... | ||
NUM_GRAPHS: Final = 1253 | ||
ATLAS_FILE: Traversable | ||
|
||
def graph_atlas(i: int) -> ArrayLike: ... | ||
def graph_atlas_g() -> ArrayLike: ... |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't feel like optimal behaviour for stubtest. I'll raise an issue upstream.