mypy: strict optional fixes.

This commit is contained in:
Christian Hudon
2017-05-24 12:28:26 -07:00
committed by Tim Abbott
parent 2f227a97d3
commit 1761a3b1c1
4 changed files with 7 additions and 4 deletions

View File

@@ -192,9 +192,9 @@ def get_commits_content(commits_data, is_truncated=False):
commits_content = u''
for commit in commits_data[:COMMITS_LIMIT]:
commits_content += COMMIT_ROW_TEMPLATE.format(
commit_short_sha=get_short_sha(commit.get('sha')),
commit_short_sha=get_short_sha(commit['sha']),
commit_url=commit.get('url'),
commit_msg=commit.get('message').partition('\n')[0]
commit_msg=commit['message'].partition('\n')[0]
)
if len(commits_data) > COMMITS_LIMIT: