Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions csfunctions/devserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import os
import time
from collections.abc import Iterable
from wsgiref.types import StartResponse, WSGIEnvironment

from werkzeug.serving import run_simple
from werkzeug.wrappers import Request, Response
Expand Down Expand Up @@ -128,7 +127,7 @@ def handle_request(request: Request) -> Response:
return Response(response, content_type="application/json")


def application(environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]:
def application(environ, start_response) -> Iterable[bytes]:
request = Request(environ)
response = handle_request(request)
return response(environ, start_response)
Expand Down
8 changes: 4 additions & 4 deletions csfunctions/objects/document.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from contextlib import suppress
from datetime import date, datetime
from typing import TYPE_CHECKING, Literal, Optional

Expand All @@ -8,9 +7,7 @@

from .base import BaseObject, ObjectType
from .file import File

with suppress(ImportError):
from .part import Part
from .part import Part

if TYPE_CHECKING:
from csfunctions.events import EventData
Expand Down Expand Up @@ -99,3 +96,6 @@ class CADDocument(Document):
"""

object_type: Literal[ObjectType.CAD_DOCUMENT] = ObjectType.CAD_DOCUMENT # type: ignore[assignment]


Part.model_rebuild()
2 changes: 0 additions & 2 deletions csfunctions/objects/part.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from contextlib import suppress
from datetime import date, datetime
from typing import TYPE_CHECKING, Literal, Optional

Expand All @@ -11,7 +10,6 @@
if TYPE_CHECKING:
from csfunctions.events import EventData

with suppress(ImportError):
from .document import Document


Expand Down
1 change: 1 addition & 0 deletions json_schemas/data_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"type": "string"
},
"data": {
"additionalProperties": true,
"description": "Data that should be returned.",
"title": "Data",
"type": "object"
Expand Down
3 changes: 3 additions & 0 deletions json_schemas/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -1514,14 +1514,17 @@
"FieldValueCalculationData": {
"properties": {
"scheme_updates": {
"additionalProperties": true,
"title": "Scheme Updates",
"type": "object"
},
"ctx": {
"additionalProperties": true,
"title": "Ctx",
"type": "object"
},
"obj": {
"additionalProperties": true,
"title": "Obj",
"type": "object"
},
Expand Down
Loading
Loading