Skip to content

Conversation

NiltonVolpato
Copy link

  • The current check would try to load that as a file and fail.
  • Pointing to the file itself (foo/init.py) doesn't work because then the _is_submodule check fails, because the module name is a random UUID in that case.
  • PYTHONPATH=. pydantic2ts.py --module foo --output foo.ts works in this case.

* The current check would try to load that as a file and fail.
* Pointing to the file itself (foo/__init__.py) doesn't work because then the _is_submodule check fails, because the module name is a random UUID in that case.
* `PYTHONPATH=. pydantic2ts.py --module foo --output foo.ts` works in this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant