Skip to content

Commit 59d6773

Browse files
committed
chore: fix missing return types
1 parent d8b6bde commit 59d6773

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ extend-select = [
8989
]
9090

9191
[tool.mypy]
92-
files = ["src"]
92+
files = ["src", "tests"]
9393
strict = "true"

src/myapplication/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
def hello_world():
1+
def hello_world() -> str:
22
return "Hello World"
33

44

5-
def main():
5+
def main() -> None:
66
print(hello_world()) # noqa: T201 print only used as placeholder :)
77

88

tests/test_myapplication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from myapplication.main import hello_world
22

33

4-
def test_hello_world():
4+
def test_hello_world() -> None:
55
if hello_world() != "Hello World":
66
raise ValueError('Expected value to be "Hello World"')

0 commit comments

Comments
 (0)