hikerpig / pintora

An extensible text-to-diagrams library that works in both browser and node.js
https://pintorajs.vercel.app
MIT License
1.11k stars 24 forks source link

classDiagram: Add support for typing (python) #266

Closed rusty-snake closed 6 months ago

rusty-snake commented 7 months ago

Minimal example

classDiagram
  class Foo {
  }

  class Bar {
    Optional[Foo] foo
  }

This fails. Although Optional[Foo] is the correct type.

I could not find a way to quote or escape it.

hikerpig commented 7 months ago

@rusty-snake Thank you for the issue , I'll try to fix it , it should be able to work without quotes.

hikerpig commented 6 months ago

This is fixed is v0.7.3