Merge pull request #6648 from jdufresne/pyver

Specify the target Python version in the mypy configuration
This commit is contained in:
Takeshi KOMIYA 2019-08-18 01:14:48 +09:00 committed by GitHub
commit d58ec72dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ paths =
.
[mypy]
python_version = 3.5
show_column_numbers = True
show_error_context = True
ignore_missing_imports = True

View File

@ -56,8 +56,8 @@ if __version__.endswith('+'):
__version__ = __version__[:-1] # remove '+' for PEP-440 version spec.
try:
ret = subprocess.run(['git', 'show', '-s', '--pretty=format:%h'],
stdout=PIPE, stderr=PIPE, encoding='ascii')
stdout=PIPE, stderr=PIPE)
if ret.stdout:
__display_version__ += '/' + ret.stdout.strip()
__display_version__ += '/' + ret.stdout.decode('ascii').strip()
except Exception:
pass