From b908d84c0fe2d5e417e71d6f78a023cb09a87308 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 7 Jul 2024 04:46:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- strings/longest_word_in_sentence.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strings/longest_word_in_sentence.py b/strings/longest_word_in_sentence.py index 0d81d7910..4389236d8 100644 --- a/strings/longest_word_in_sentence.py +++ b/strings/longest_word_in_sentence.py @@ -23,6 +23,8 @@ def longest_word(sentence: str) -> str: words = sentence.split() return max(words, key=len) if words else "" + if __name__ == "__main__": from doctest import testmod + testmod()