Merge pull request #41 from smorokin/patch-1
Use code example without type hints
This commit is contained in:
@ -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:
|
Note that type hints are **optional** so perfectly valid `ormar` code can look like this:
|
||||||
|
|
||||||
```Python hl_lines="15-17"
|
```Python hl_lines="15-17"
|
||||||
--8<-- "../docs_src/models/docs001.py"
|
--8<-- "../docs_src/models/docs012.py"
|
||||||
```
|
```
|
||||||
|
|
||||||
!!!warning
|
!!!warning
|
||||||
@ -347,4 +347,4 @@ For example to list table model fields you can:
|
|||||||
[databases]: https://github.com/encode/databases
|
[databases]: https://github.com/encode/databases
|
||||||
[sqlalchemy connection string]: https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls
|
[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
|
[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
|
||||||
|
|||||||
Reference in New Issue
Block a user