diff options
| author | natsuoto <[email protected]> | 2026-07-16 17:31:49 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-16 17:31:49 +0530 |
| commit | 1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9 (patch) | |
| tree | 7731af50ed9117f8ac3d200591c3be23818d7b19 /tests/pattern/classes.test.py | |
| parent | b7ae2f3885d5ff84237c9da8bc0c64fe1a509465 (diff) | |
| download | edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.tar.xz edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.zip | |
chore: enforce fully strict static typing across library, tests, and tooling with zero suppressions
Diffstat (limited to 'tests/pattern/classes.test.py')
| -rw-r--r-- | tests/pattern/classes.test.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
