diff options
author | Douglas Fenstermacher <douglas.fenstermacher@gmail.com> | 2020-11-05 10:39:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 09:39:07 -0600 |
commit | 49d62f84df0a82b10b3623024ca66b1f09958072 (patch) | |
tree | b6b79eb8bb3a0528e52f4c2ae966c97c5838df9b /setup.py | |
parent | 93d3e7c247b66ec54d1095df30e99a95b4af9c72 (diff) | |
download | numpy-49d62f84df0a82b10b3623024ca66b1f09958072.tar.gz |
ENH: adds type hints to numpy.version (gh-17711)
Closes gh-17702
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -140,11 +140,11 @@ def write_version_py(filename='numpy/version.py'): # THIS FILE IS GENERATED FROM NUMPY SETUP.PY # # To compare versions robustly, use `numpy.lib.NumpyVersion` -short_version = '%(version)s' -version = '%(version)s' -full_version = '%(full_version)s' -git_revision = '%(git_revision)s' -release = %(isrelease)s +short_version: str = '%(version)s' +version: str = '%(version)s' +full_version: str = '%(full_version)s' +git_revision: str = '%(git_revision)s' +release: bool = %(isrelease)s if not release: version = full_version |