Skip to content

Commit

Permalink
Regression test for generic protocols.
Browse files Browse the repository at this point in the history
Refs #113 and commit 4e22af5.
  • Loading branch information
coady committed Feb 27, 2024
1 parent a6cc05b commit 31a213b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def test_subtype():
assert subtype(Union[base, subclass(base)])
assert not list(subtype.origins(subclass(subclass(Protocol))))
assert not list(subtype.origins(subclass(Sized)))
assert not list(subtype.origins(subclass(Protocol[TypeVar('T')])))


def test_signature():
Expand Down

0 comments on commit 31a213b

Please sign in to comment.