Skip to content

typing.Literal recognition is unsupported #91

@seppzer0

Description

@seppzer0

Hi!

First of all, really liked the idea of the project. Auto-generating plantuml documentation straight from Python code is quite nice.

I've attempted to check out py2puml on my project, but happened to encounter this error:

ValueError: typing.Literal['val1', 'val2'] seems to be an invalid type annotation

I'm assuming py2puml is currently unable to recognize literals (which essentially are a form of enums), and based on this PR it also can't yet work with Pydantic models, which subjectively is even more concerning.

Is there a chance for the missing type (and potentially other types I haven't gotten an issue with yet) to be added to py2puml?

Again, really like the idea, can see myself using this very often if it works out :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions