8000 Fix issues when code has `"""` but is not a docstring · Issue #10 · telekom/style-doc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fix issues when code has """ but is not a docstring #10
Open
@PhilipMay

Description

@PhilipMay

We had to apply this workaround:

# fmt: off
splits = code.split("\"\"\"")
# fmt: on

# fmt: off and # fmt: on is needed so black does not convert it back to '"""'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0