1
Fork 0
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:
Steffo 2020-11-06 18:51:35 +01:00
parent f63b97be14
commit 4a48f58013
3 changed files with 0 additions and 17 deletions

View file

@ -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"

View file

@ -1,3 +1,2 @@
from .func import * from .func import *
from .repr import * from .repr import *
from .model import *

View file

@ -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",
)