[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-07-07 04:39:19 +00:00
parent 1b9bde3e34
commit c5cd96925e

View File

@ -21,8 +21,10 @@ def longest_word(sentence: str) -> str:
'thousand'
"""
words = sentence.split()
return max(words, key=len) if words else ''
return max(words, key=len) if words else ""
if __name__ == "__main__":
from doctest import testmod
testmod()