Commit acc9125
committed
Use correct type annotation for PyWJK.from_json(algorithm=…) arg
This fixes a wrong type annotation for PyWJK.from_json().
The docs correctly say the ‘algorithm’ argument can be ‘str | None’, so
annotate the function as such.
The function then delegates to PyWJK.from_json() which already correctly
accepts ‘str | None’.1 parent 7144e45 commit acc9125
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments