tortoise-orm icon indicating copy to clipboard operation
tortoise-orm copied to clipboard

docs: fix import for pydantic_model_creator

Open oieduardorabelo opened this issue 2 years ago • 2 comments

Description

pylance reports there's no export from tortoise.contrib.pydantic called pydantic_model_creator

CleanShot 2023-07-11 at 11 34 33

Motivation and Context

How Has This Been Tested?

Checklist:

  • [ ] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added the changelog accordingly.
  • [ ] I have read the CONTRIBUTING document.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

oieduardorabelo avatar Jul 10 '23 23:07 oieduardorabelo

But which imported in __init__.py

long2ice avatar Jul 21 '23 03:07 long2ice

It might make more sense to list those in __all__ inside __init__.py explicitly. That should get rid of this error without changing any end-user code.

wont-work avatar Aug 25 '23 16:08 wont-work