Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Experiment to use pytypes to add support for python type hints #69

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Change doctest to work in py2/3 due to difference in reprs
  • Loading branch information
mariusvniekerk committed Jan 26, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 184df19bdb539b583c7426eba7368e0af55c2bb4
4 changes: 2 additions & 2 deletions multipledispatch/utils.py
Original file line number Diff line number Diff line change
@@ -20,8 +20,8 @@ def expand_tuples(L):
>>> expand_tuples([1, 2])
[(1, 2)]

>>> expand_tuples([1, typing.Optional[str]])
[(1, <class 'str'>), (1, <class 'NoneType'>)]
>>> expand_tuples([1, typing.Optional[str]]) #doctest: +ELLIPSIS
[(1, <... 'str'>), (1, <... 'NoneType'>)]
"""
if not L:
return [()]