diff --git a/pyproject.toml b/pyproject.toml index addea61e..c6728a0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dynamic = ["version"] requires-python = ">=3.8" dependencies = [ - "beartype >= 0.16", + "beartype>=0.16.2", "typing-extensions; python_version<='3.10'", ] diff --git a/tests/test_parametric.py b/tests/test_parametric.py index 94e4c3ab..ec58ab0f 100644 --- a/tests/test_parametric.py +++ b/tests/test_parametric.py @@ -521,7 +521,9 @@ class MockVal: def test_init_subclass_correct_args(): - # See issue https://github.com/beartype/plum/issues/105 + # See the following issue: + # + # https://github.com/beartype/plum/issues/105 from plum import parametric @@ -529,10 +531,8 @@ def test_init_subclass_correct_args(): class Pytree: def __init_subclass__(cls, **kwargs): - if cls in register: - raise ValueError("duplicate") - else: - register.add(cls) + assert cls not in register, "Duplicate!" + register.add(cls) @parametric class Wrapper(Pytree):