Closed
Description
For printing types at runtime, including in the interpreter. See the MyPy docs.
Example:
> coconut --mypy
Coconut Interpreter:
(enter 'exit()' or press Ctrl-D <
5F20
span class="pl-s1">to end)
>>> reveal_type(fmap)
<function fmap at 0x00000239B06E2040>
<string>:17: note: Revealed type is 'def [_T, _U] (func: def (_T`-1) -> _U`-2, obj: typing.Iterable[_T`-1]) -> typing.Iterable[_U`-2]'
>>>