Skip to content

Commit 7c80f5a

Browse files
author
Joel Collins
committed
Fixed LabThingsJSONEncoder export
1 parent be14a44 commit 7c80f5a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/labthings/representations.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@
44
from flask import current_app, make_response, Response
55

66
from .find import current_labthing
7-
from .json.encoder import encode_json, JSONEncoder as FlaskJSONEncoder
7+
from .json.encoder import (
8+
LabThingsJSONEncoder,
9+
encode_json,
10+
JSONEncoder as FlaskJSONEncoder,
11+
)
812
from .utilities import PY3
913

14+
__all__ = ["LabThingsJSONEncoder", "DEFAULT_REPRESENTATIONS", "output_json"]
15+
1016

1117
def output_json(data: Any, code: int, headers: Optional[dict] = None) -> Response:
1218
"""Makes a Flask response with a JSON encoded body, using app JSON settings

0 commit comments

Comments
 (0)