Skip to content

Commit

Permalink
Make _SingleMatch a litte more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Jun 1, 2023
1 parent 2f34b34 commit 3efe10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docopt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _transform(pattern: _BranchPattern) -> _Either:
return _Either(*[_Required(*e) for e in result])


_SingleMatch = Tuple[Union[int, None], Union["_LeafPattern", None]]
_SingleMatch = Union[Tuple[int, "_LeafPattern"], Tuple[None, None]]


class _LeafPattern(_Pattern):
Expand Down

0 comments on commit 3efe10d

Please sign in to comment.