Skip to content

Commit 6820eb3

Browse files
committed
chore: add explanation comment
1 parent 51af61d commit 6820eb3

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Python
2+
__pycache__/
3+
.mypy_cache/
4+
.venv/
5+
6+
# Node
7+
node_modules/
8+
9+
# Mac
10+
.DS_Store

why_we_use_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def double1(number):
2727

2828
print(double1(10))
2929
# When you check the function name, it doesn’t fit what we have to expect.
30+
# A better name would be 'triple' or 'multiply_by_three'.
3031
# If you use this func you would expect it to give you double like 20, not 30.
3132
# It might cause a problem for your code.
3233

0 commit comments

Comments
 (0)