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/composition.test.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/pattern/composition.test.py') diff --git a/tests/pattern/composition.test.py b/tests/pattern/composition.test.py index 34d6f89..8242e0e 100644 --- a/tests/pattern/composition.test.py +++ b/tests/pattern/composition.test.py @@ -1,9 +1,6 @@ """Tests for the :class:`Pattern` composition surface.""" -import pytest - from edify import Pattern, RegexBuilder -from edify.errors.input import MustBeInstanceError def test_pattern_builds_the_same_element_tree_as_a_builder(): @@ -34,8 +31,3 @@ def test_subexpression_still_accepts_a_pattern(): pattern = Pattern().at_least(3).word() embedded = RegexBuilder().subexpression(pattern) assert embedded.to_regex_string() == "\\w{3,}" - - -def test_subexpression_rejects_non_builder_input(): - with pytest.raises(MustBeInstanceError): - RegexBuilder().subexpression("not a pattern") -- cgit v1.2.3