mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-26 21:14:19 +00:00
🗑 Remove PyModel, as it doesn't work as expected
This commit is contained in:
parent
f63b97be14
commit
4a48f58013
3 changed files with 0 additions and 17 deletions
|
@ -11,7 +11,6 @@ redis = "^3.5.3"
|
||||||
hiredis = "^1.1.0"
|
hiredis = "^1.1.0"
|
||||||
sqlalchemy = "^1.3.19"
|
sqlalchemy = "^1.3.19"
|
||||||
toml = "^0.10.1"
|
toml = "^0.10.1"
|
||||||
pydantic-sqlalchemy = "^0.0.7"
|
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
pytest = "^6.1.1"
|
pytest = "^6.1.1"
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
from .func import *
|
from .func import *
|
||||||
from .repr import *
|
from .repr import *
|
||||||
from .model import *
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
import pydantic_sqlalchemy
|
|
||||||
import functools
|
|
||||||
|
|
||||||
|
|
||||||
class PyModel:
|
|
||||||
"""A mixin that can be added to a declared class to generate a Pydantic model from it."""
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def pydantic(cls):
|
|
||||||
return pydantic_sqlalchemy.sqlalchemy_to_pydantic(cls)
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
|
||||||
"PyModel",
|
|
||||||
)
|
|
Loading…
Reference in a new issue