[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-05 05:01:45 +00:00
parent 1c7710de38
commit b31d2b2912

View File

@ -12,8 +12,10 @@ def longest_word(sentence: str) -> str:
'a'
"""
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()