From 1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9 Mon Sep 17 00:00:00 2001 From: natsuoto <279971144+natsuoto@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:31:49 +0530 Subject: chore: enforce fully strict static typing across library, tests, and tooling with zero suppressions --- tests/pattern/classes.test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/pattern/classes.test.py') diff --git a/tests/pattern/classes.test.py b/tests/pattern/classes.test.py index 8a82353..c5d4f63 100644 --- a/tests/pattern/classes.test.py +++ b/tests/pattern/classes.test.py @@ -42,7 +42,7 @@ from edify import ( (ALPHANUMERIC, "[a-zA-Z0-9]"), ], ) -def test_character_class_constant_compiles_to_expected_regex(constant, expected): +def test_character_class_constant_compiles_to_expected_regex(constant: Pattern, expected: str): assert constant.to_regex_string() == expected @@ -66,7 +66,7 @@ def test_character_class_constant_compiles_to_expected_regex(constant, expected) ALPHANUMERIC, ], ) -def test_character_class_constant_is_a_pattern(constant): +def test_character_class_constant_is_a_pattern(constant: object): assert isinstance(constant, Pattern) @@ -82,7 +82,7 @@ def test_character_class_constant_is_a_pattern(constant): ], ) def test_convenience_char_class_constant_matches_expected_characters( - constant, hit_input, miss_input + constant: Pattern, hit_input: str, miss_input: str ): assert constant.test(hit_input) is True assert constant.test(miss_input) is False -- cgit v1.2.3