Skip to content

Commit 8ff2ec6

Browse files
authored
📝 color-theme-dependent examples (#693)
2 parents 2130616 + ddd643c commit 8ff2ec6

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

2945
## Why use scipy-stubs?
3046

0 commit comments

Comments
 (0)