File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,23 @@ pip install scipy-stubs
24
24
25
25
That's it! Your IDE and type checker will now provide precise type information for SciPy functions:
26
26
27
- ![ scipy-stubs demo] ( https://github.com/user-attachments/assets/2cf05d30-9a4c-41f9-8bc2-bbf12998ff26 )
27
+ ## Examples
28
+
29
+ Prevent mistakes with precise type hints:
30
+
31
+ <picture >
32
+ <source media =" (prefers-color-scheme: dark) " srcset =" https://github.com/user-attachments/assets/e50eb3db-7cb5-41e7-a56b-a563e9bd28d6 " >
33
+ <source media =" (prefers-color-scheme: light) " srcset =" https://github.com/user-attachments/assets/7905d0ea-693c-4b5f-aaf9-4af0d11a520f " >
34
+ <img alt =" bug prevention demo " src =" https://github.com/user-attachments/assets/7905d0ea-693c-4b5f-aaf9-4af0d11a520f " >
35
+ </picture >
36
+
37
+ Accurate annotations for dtypes and shapes:
38
+
39
+ <picture >
40
+ <source media =" (prefers-color-scheme: dark) " srcset =" https://github.com/user-attachments/assets/c8a5d204-13ca-4fe8-8d83-95d55ca9b9df " >
41
+ <source media =" (prefers-color-scheme: light) " srcset =" https://github.com/user-attachments/assets/2170df07-3491-480e-985f-24494e7d5d3f " >
42
+ <img alt =" precise type inference demo " src =" https://github.com/user-attachments/assets/2170df07-3491-480e-985f-24494e7d5d3f " >
43
+ </picture >
28
44
29
45
## Why use scipy-stubs?
30
46
You can’t perform that action at this time.
0 commit comments