Skip to content

Commit

Permalink
Comment on Mypy repr of recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Jun 25, 2018
1 parent 2118a32 commit 5f212e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whole-repo-tests/test_type_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def get_mypy_analysed_type(fname, val):
('booleans().filter(bool)', 'bool'),
('lists(none())', 'list[None]'),
('dictionaries(integers(), datetimes())', 'dict[int, datetime.datetime]'),
# Ex`-1 stands for recursion in the whole type, i.e. Ex`0 == Union[...]
('recursive(integers(), lists)', 'Union[list[Ex`-1], int]'),
# See https://github.com/python/mypy/issues/5269 - fix the hints on
# `one_of` and document the minimum Mypy version when the issue is fixed.
Expand Down

0 comments on commit 5f212e9

Please sign in to comment.