Commit 0e430b9
Add explicit signatures for pyplot.{polar,savefig,set_loglevel} (matplotlib#30200)
* Create tests
(cherry picked from commit 608b51f)
* Update test_pyplot.py to include type on signature
(cherry picked from commit 4ea0ff8)
* Update polar and set_loglevel signature on pyplot.py
(cherry picked from commit 41b701b)
* Update savefig signature on pyplot.py
(cherry picked from commit b863ba2)
* Add type hint on polar and set_loglevel on pyplot.py. Correct polar content
(cherry picked from commit 92dc045)
* Format with ruff
(cherry picked from commit 64e7921)
* Revert polar on pyplot.py and remove corresponding test
* Remove extra work when stub file doesn't exists
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
* Replace assert_signatures_identical (check return_annotation and full parameters) with assert_same_signature (only check len(parameters), names and kinds)
* Remove unused import
* Renaming assert_signature arguments
* Correct typo and ruff error
---------
Co-authored-by: Corenthin ZOZOR <corenthin.zozor@gmail.com>
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent 9c184c1 commit 0e430b9
2 files changed
+29
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
| 341 | + | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
1259 | 1259 | | |
1260 | 1260 | | |
1261 | 1261 | | |
1262 | | - | |
| 1262 | + | |
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
| 1266 | + | |
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
0 commit comments