From 62accf2c7bc793c427618b9c58db16cb24384e8d Mon Sep 17 00:00:00 2001 From: atomi <1456417373@qq.com> Date: Sun, 10 Sep 2023 14:54:18 +0800 Subject: [PATCH] fix: Fix that python3.7 cannot import cached property --- fastapi_amis_admin/admin/extensions/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_amis_admin/admin/extensions/admin.py b/fastapi_amis_admin/admin/extensions/admin.py index 3376332..40091ba 100644 --- a/fastapi_amis_admin/admin/extensions/admin.py +++ b/fastapi_amis_admin/admin/extensions/admin.py @@ -1,6 +1,5 @@ import asyncio from datetime import datetime -from functools import cached_property from typing import Any, Dict, List, Optional, Sequence, Set, Union from sqlalchemy.engine import Result @@ -14,6 +13,7 @@ from fastapi_amis_admin.crud.base import ItemListSchema, SchemaCreateT, SchemaFilterT, SchemaModelT, SchemaReadT, SchemaUpdateT from fastapi_amis_admin.crud.parser import TableModelT from fastapi_amis_admin.crud.schema import CrudEnum +from fastapi_amis_admin.utils.functools import cached_property from fastapi_amis_admin.utils.pydantic import ModelField