8000 Add reveal_type, reveal_locals built-ins · Issue #574 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add reveal_type, reveal_locals built-ins #574
Closed
@evhub

Description

@evhub

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]'
>>>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0