File tree 6 files changed +140
-125
lines changed
6 files changed +140
-125
lines changed Original file line number Diff line number Diff line change 35
35
import os
36
36
import time
37
37
from collections .abc import Iterable
38
- from wsgiref .types import StartResponse , WSGIEnvironment
39
38
40
39
from werkzeug .serving import run_simple
41
40
from werkzeug .wrappers import Request , Response
@@ -128,7 +127,7 @@ def handle_request(request: Request) -> Response:
128
127
return Response (response , content_type = "application/json" )
129
128
130
129
131
- def application (environ : WSGIEnvironment , start_response : StartResponse ) -> Iterable [bytes ]:
130
+ def application (environ , start_response ) -> Iterable [bytes ]:
132
131
request = Request (environ )
133
132
response = handle_request (request )
134
133
return response (environ , start_response )
Original file line number Diff line number Diff line change 1
- from contextlib import suppress
2
1
from datetime import date , datetime
3
2
from typing import TYPE_CHECKING , Literal , Optional
4
3
8
7
9
8
from .base import BaseObject , ObjectType
10
9
from .file import File
11
-
12
- with suppress (ImportError ):
13
- from .part import Part
10
+ from .part import Part
14
11
15
12
if TYPE_CHECKING :
16
13
from csfunctions .events import EventData
@@ -99,3 +96,6 @@ class CADDocument(Document):
99
96
"""
100
97
101
98
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
2
1
from datetime import date , datetime
3
2
from typing import TYPE_CHECKING , Literal , Optional
4
3
11
10
if TYPE_CHECKING :
12
11
from csfunctions .events import EventData
13
12
14
- with suppress (ImportError ):
15
13
from .document import Document
16
14
17
15
Original file line number Diff line number Diff line change 11
11
"type" : " string"
12
12
},
13
13
"data" : {
14
+ "additionalProperties" : true ,
14
15
"description" : " Data that should be returned." ,
15
16
"title" : " Data" ,
16
17
"type" : " object"
Original file line number Diff line number Diff line change 1514
1514
"FieldValueCalculationData" : {
1515
1515
"properties" : {
1516
1516
"scheme_updates" : {
1517
+ "additionalProperties" : true ,
1517
1518
"title" : " Scheme Updates" ,
1518
1519
"type" : " object"
1519
1520
},
1520
1521
"ctx" : {
1522
+ "additionalProperties" : true ,
1521
1523
"title" : " Ctx" ,
1522
1524
"type" : " object"
1523
1525
},
1524
1526
"obj" : {
1527
+ "additionalProperties" : true ,
1525
1528
"title" : " Obj" ,
1526
1529
"type" : " object"
1527
1530
},
You can’t perform that action at this time.
0 commit comments