Skip to content

Commit bcb9fbd

Browse files
authored
Final QA (#656)
1 parent 125441a commit bcb9fbd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python-code-quality/functionality.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# return a + b
33

44

5-
def add_numbers(a: int | float, b: int | float) -> int | float:
5+
def add_numbers(a: int | float, b: int | float) -> float:
66
a, b = float(a), float(b)
77
return a + b
88

python-code-quality/testability.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# import pytest
22

33
# def greet(name):
4-
# print(f"Hello, {name}")
4+
# print(f"Hello, {name}!")
55

66

77
# def test_greet(capsys):
88
# greet("Alice")
99
# captured = capsys.readouterr()
10-
# assert captured.out.strip() == "Hello, Alice"
10+
# assert captured.out.strip() == "Hello, Alice!"
1111

1212

1313
def greet(name: str) -> str:
14-
return f"Hello, {name}"
14+
return f"Hello, {name}!"
1515

1616

1717
# Easy to test
1818
def test_greet():
19-
assert greet("Alice") == "Hello, Alice"
19+
assert greet("Alice") == "Hello, Alice!"

0 commit comments

Comments
 (0)