File tree Expand file tree Collapse file tree 6 files changed +140
-125
lines changed Expand file tree Collapse file tree 6 files changed +140
-125
lines changed Original file line number Diff line number Diff line change 3535import os
3636import time
3737from collections .abc import Iterable
38- from wsgiref .types import StartResponse , WSGIEnvironment
3938
4039from werkzeug .serving import run_simple
4140from werkzeug .wrappers import Request , Response
@@ -128,7 +127,7 @@ def handle_request(request: Request) -> Response:
128127 return Response (response , content_type = "application/json" )
129128
130129
131- def application (environ : WSGIEnvironment , start_response : StartResponse ) -> Iterable [bytes ]:
130+ def application (environ , start_response ) -> Iterable [bytes ]:
132131 request = Request (environ )
133132 response = handle_request (request )
134133 return response (environ , start_response )
Original file line number Diff line number Diff line change 1- from contextlib import suppress
21from datetime import date , datetime
32from typing import TYPE_CHECKING , Literal , Optional
43
87
98from .base import BaseObject , ObjectType
109from .file import File
11-
12- with suppress (ImportError ):
13- from .part import Part
10+ from .part import Part
1411
1512if TYPE_CHECKING :
1613 from csfunctions .events import EventData
@@ -99,3 +96,6 @@ class CADDocument(Document):
9996 """
10097
10198 object_type : Literal [ObjectType .CAD_DOCUMENT ] = ObjectType .CAD_DOCUMENT # type: ignore[assignment]
99+
100+
101+ Part .model_rebuild ()
Original file line number Diff line number Diff line change 1- from contextlib import suppress
21from datetime import date , datetime
32from typing import TYPE_CHECKING , Literal , Optional
43
1110if TYPE_CHECKING :
1211 from csfunctions .events import EventData
1312
14- with suppress (ImportError ):
1513 from .document import Document
1614
1715
Original file line number Diff line number Diff line change 1111 "type" : " string"
1212 },
1313 "data" : {
14+ "additionalProperties" : true ,
1415 "description" : " Data that should be returned." ,
1516 "title" : " Data" ,
1617 "type" : " object"
Original file line number Diff line number Diff line change 15141514 "FieldValueCalculationData" : {
15151515 "properties" : {
15161516 "scheme_updates" : {
1517+ "additionalProperties" : true ,
15171518 "title" : " Scheme Updates" ,
15181519 "type" : " object"
15191520 },
15201521 "ctx" : {
1522+ "additionalProperties" : true ,
15211523 "title" : " Ctx" ,
15221524 "type" : " object"
15231525 },
15241526 "obj" : {
1527+ "additionalProperties" : true ,
15251528 "title" : " Obj" ,
15261529 "type" : " object"
15271530 },
You can’t perform that action at this time.
0 commit comments