This commit is contained in:
2025-07-21 14:19:27 +08:00
parent 6fab32cbb2
commit 5537bd7d4a
3 changed files with 19 additions and 17 deletions

View File

@@ -5,16 +5,15 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from Convention.Runtime.Config import *
from Convention.Runtime.EasySave import *
class test_log(BaseModel):
test_field:int
test_field_2:str
class Test:
test_field:int = 10
class_test_field:int = 20
def __init__(self):
self.test_field:int = 0
def run():
SetInternalDebug(True)
SetInternalReflectionDebug(True)
SetInternalEasySaveDebug(True)
test = test_log(test_field=1,test_field_2="test")
EasySave.Write(test,"test.json")
print(Test.__annotations__)
if __name__ == "__main__":
run()