From 4a37f046071409c5e8aa38444bd1ca42dbf79f29 Mon Sep 17 00:00:00 2001 From: Evan Hubinger Date: Sun, 25 Aug 2024 00:19:00 -0700 Subject: [PATCH] Fix mypy --- __coconut__/__init__.pyi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/__coconut__/__init__.pyi b/__coconut__/__init__.pyi index fedb0bb9..f2bc2bdf 100644 --- a/__coconut__/__init__.pyi +++ b/__coconut__/__init__.pyi @@ -1865,6 +1865,18 @@ def _coconut_mk_anon_namedtuple( fields: _t.Tuple[_t.Text, ...], types: _t.Optional[_t.Tuple[_t.Any, ...]] = None, ) -> _t.Callable[..., _t.Tuple[_t.Any, ...]]: ... +@_t.overload +def _coconut_mk_anon_namedtuple( + fields: _t.Tuple[_t.Text, ...], + types: _t.Optional[_t.Tuple[_t.Any, ...]], + of_args: _T, +) -> _T: ... +@_t.overload +def _coconut_mk_anon_namedtuple( + fields: _t.Tuple[_t.Text, ...], + *, + of_args: _T, +) -> _T: ... # @_t.overload