Commit 1ae7aab
committed
Add why_we_use_types.py exercise with bug identification and fix
- Add exercise demonstrating the importance of type hints
- Include buggy double() function that multiplies by 3 instead of 2
- Document the bug and propose two possible fixes1 parent c54ba92 commit 1ae7aab
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments