From 3620e2ad4ec8f081ab4091bdc12557f9e3280ea2 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 11 Aug 2016 01:25:32 -0700 Subject: [PATCH] Improved scalars --- graphene/new_types/scalars.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/new_types/scalars.py b/graphene/new_types/scalars.py index 7977542f..8a967dc3 100644 --- a/graphene/new_types/scalars.py +++ b/graphene/new_types/scalars.py @@ -19,8 +19,8 @@ class ScalarTypeMeta(type): options = Options( attrs.pop('Meta', None), - name=None, - description=None, + name=name, + description=attrs.get('__doc__'), ) return super_new(cls, name, bases, dict(attrs, _meta=options))