Skip to content

Commit

Permalink
add TypeError doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
rudymatela committed Aug 19, 2024
1 parent d07b727 commit 66222ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/leancheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ def __class_getitem__(cls, c):
>>> print(Enumerator[tuple[int,int,int]])
[(0, 0, 0), (0, 0, 1), (0, 1, 0), (1, 0, 0), (0, 0, 2), (0, 1, 1), ...]
>>> print(Enumerator[type])
Traceback (most recent call last):
...
TypeError: could not find Enumerator for <class 'type'>
"""
cls._initialize()
try:
Expand Down

0 comments on commit 66222ff

Please sign in to comment.