Skip to content

Commit

Permalink
Merge branch 'master' into wbruinsma/fix-isinstance-covariance
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Sep 23, 2023
2 parents d8c92ad + 4008f40 commit 308f7ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dynamic = ["version"]

requires-python = ">=3.8"
dependencies = [
"beartype >= 0.16",
"beartype>=0.16.2",
"typing-extensions; python_version<='3.10'",
]

Expand Down
10 changes: 5 additions & 5 deletions tests/test_parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,18 +521,18 @@ 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

register = set()

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):
Expand Down

0 comments on commit 308f7ac

Please sign in to comment.