Skip to content

Commit 77a1fc5

Browse files
committed
setup: add type annotations
1 parent 885d22a commit 77a1fc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

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

33

4-
def main():
4+
def main() -> None:
55
setuptools.setup(
66
name="enapter",
77
version=read_version(),
@@ -22,14 +22,14 @@ def main():
2222
)
2323

2424

25-
def read_version():
25+
def read_version() -> str:
2626
with open("src/enapter/__init__.py") as f:
27-
local_scope = {}
27+
local_scope: dict = {}
2828
exec(f.readline(), {}, local_scope)
2929
return local_scope["__version__"]
3030

3131

32-
def read_file(name):
32+
def read_file(name) -> str:
3333
with open(name) as f:
3434
return f.read()
3535

0 commit comments

Comments
 (0)