8000 Add flag to disable wrapping type hints in strings · Issue #514 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add flag to disable wrapping type hints in strings #514
Closed
@QuestofIranon

Description

@QuestofIranon

When compiling to Python with target set to any version above 3.x the type hints for functions and variables get wrapped in single quotes. This breaks functionality with some libraries which rely on type hints such as pydantic.

I first noticed it with Coconut: Version 1.4.1 [Ernest Scribbler] running on Python 3.7.4 but tested it out on the online interpreter with Python 3.3 3.4 3.5 and 3.6 with the same results.

Based on the documentation at https://coconut.readthedocs.io/en/master/DOCS.html#enhanced-type-annotation it looks like it should be possible to use standard 3.5 type annotation syntax.

For context I was originally testing to see if I could use coconut with fastapi.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0