From 89e8f035cfebbbb26c25cd6fa8609af325527293 Mon Sep 17 00:00:00 2001 From: junkmd Date: Fri, 6 Dec 2024 22:00:11 +0900 Subject: [PATCH] Add type annotations to `load_tests`. --- comtypes/test/test_showevents.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comtypes/test/test_showevents.py b/comtypes/test/test_showevents.py index a39fecbe..6468499f 100644 --- a/comtypes/test/test_showevents.py +++ b/comtypes/test/test_showevents.py @@ -1,8 +1,11 @@ import doctest import unittest +from typing import Optional -def load_tests(loader, tests, ignore): +def load_tests( + loader: unittest.TestLoader, tests: unittest.TestSuite, pattern: Optional[str] +) -> unittest.TestSuite: import comtypes.test.test_showevents tests.addTests(doctest.DocTestSuite(comtypes.test.test_showevents))