summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Ramirez <dr01191115@gmail.com>2021-06-23 12:20:20 -0500
committerGitHub <noreply@github.com>2021-06-23 12:20:20 -0500
commit189f63ac122b7d002039c041ae356f0de03fe7ea (patch)
tree58ad75c2cbca59c169152ebb5dbed84645309572
parent4704da4dad58ca89439edc109f7d12217c0fd447 (diff)
downloadpip-189f63ac122b7d002039c041ae356f0de03fe7ea.tar.gz
Fix the annotations for `setup.py`
I have been converting type commentaries into annotations. For now, I'll fix some annotations from `setup.py`.
-rw-r--r--setup.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 91f537a40..a233bd253 100644
--- a/setup.py
+++ b/setup.py
@@ -4,8 +4,7 @@ import sys
from setuptools import find_packages, setup
-def read(rel_path):
- # type: (str) -> str
+def read(rel_path: str) -> str:
here = os.path.abspath(os.path.dirname(__file__))
# intentionally *not* adding an encoding option to open, See:
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
@@ -13,8 +12,7 @@ def read(rel_path):
return fp.read()
-def get_version(rel_path):
- # type: (str) -> str
+def get_version(rel_path: str) -> str:
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
# __version__ = "0.9"