Skip to content

Commit cad1d6f

Browse files
committed
📝 color-theme-dependent examples
1 parent 2130616 commit cad1d6f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,23 @@ pip install scipy-stubs
2424

2525
That's it! Your IDE and type checker will now provide precise type information for SciPy functions:
2626

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>
2844

2945
## Why use scipy-stubs?
3046

0 commit comments

Comments
 (0)