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://gist.github.com/user-attachments/assets/43902002-f06c-4121-aab8-7c8a52faee7a.png " >
33
+ <source media =" (prefers-color-scheme: light) " srcset =" https://gist.github.com/user-attachments/assets/be9c07de-8e20-4802-b851-605887a1d912.png " >
34
+ <img alt =" bug prevention demo " src =" https://gist.github.com/user-attachments/assets/be9c07de-8e20-4802-b851-605887a1d912.png " >
35
+ </picture >
36
+
37
+ Accurate annotations for dtypes and shapes:
38
+
39
+ <picture >
40
+ <source media =" (prefers-color-scheme: dark) " srcset =" https://gist.github.com/user-attachments/assets/6adc57c7-8d13-4832-87dd-df786516e3f7.png " >
41
+ <source media =" (prefers-color-scheme: light) " srcset =" https://gist.github.com/user-attachments/assets/0112e9ad-8487-40b2-8a4e-b43b781eac78.png " >
42
+ <img alt =" precise type inference demo " src =" https://gist.github.com/user-attachments/assets/0112e9ad-8487-40b2-8a4e-b43b781eac78.png " >
43
+ </picture >
28
44
29
45
## Why use scipy-stubs?
30
46
You can’t perform that action at this time.
0 commit comments