From 282ddb2a2300b6c6e17fab21c6c3d6fb74d7f070 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 24 Apr 2020 10:20:11 +0100 Subject: [PATCH] Explicit Fields imports --- labthings/server/fields.py | 66 +++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/labthings/server/fields.py b/labthings/server/fields.py index 68149fcd..5390986a 100644 --- a/labthings/server/fields.py +++ b/labthings/server/fields.py @@ -1,2 +1,66 @@ # Marshmallow fields -from marshmallow.fields import * +from marshmallow.fields import ( + Field, + Raw, + Nested, + Mapping, + Dict, + List, + Tuple, + String, + UUID, + Number, + Integer, + Decimal, + Boolean, + Float, + DateTime, + NaiveDateTime, + AwareDateTime, + Time, + Date, + TimeDelta, + Url, + URL, + Email, + Method, + Function, + Str, + Bool, + Int, + Constant, + Pluck, +) + +__all__ = [ + "Field", + "Raw", + "Nested", + "Mapping", + "Dict", + "List", + "Tuple", + "String", + "UUID", + "Number", + "Integer", + "Decimal", + "Boolean", + "Float", + "DateTime", + "NaiveDateTime", + "AwareDateTime", + "Time", + "Date", + "TimeDelta", + "Url", + "URL", + "Email", + "Method", + "Function", + "Str", + "Bool", + "Int", + "Constant", + "Pluck", +]