Closed graingert closed 2 years ago
Thanks for your suggestion! It turns out I overlooked that section.
The class-based format looks trivial to adapt to. I will look into PEP589 carefully later.
I've made a quick fix by https://github.com/Gowee/json2pyi/commit/1955a93db98e1059a39d86143a7cf65106409715. It will take a while to be deployed :rocket: onto the web app: https://json2pyi.pages.dev/#TypedDictClass.
I just remember that the missing class-based TypedDict
was due to regression after a refactor.
Should be fixed. Closing it for now. Please let me know if there are any other problems. Thanks!
first of all thanks a lot for this tool! It did almost exactly what I needed
https://www.python.org/dev/peps/pep-0589/#class-based-syntax
currently json2pyi generates:
but I'd like it to generate:
where possible