Use code example without type hints

This commit is contained in:
smorokin
2020-11-11 09:17:37 +01:00
committed by GitHub
parent bc9e3f6753
commit 139a93267b

View File

@ -78,7 +78,7 @@ Therefore from version >=0.4.0 `ormar` switched to new notation.
Note that type hints are **optional** so perfectly valid `ormar` code can look like this:
```Python hl_lines="15-17"
--8<-- "../docs_src/models/docs001.py"
--8<-- "../docs_src/models/docs012.py"
```
!!!warning
@ -347,4 +347,4 @@ For example to list table model fields you can:
[databases]: https://github.com/encode/databases
[sqlalchemy connection string]: https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls
[sqlalchemy table creation]: https://docs.sqlalchemy.org/en/13/core/metadata.html#creating-and-dropping-database-tables
[alembic]: https://alembic.sqlalchemy.org/en/latest/tutorial.html
[alembic]: https://alembic.sqlalchemy.org/en/latest/tutorial.html