Skip to content

Commit f131676

Browse files
committed
Removed Undefined var duplication
1 parent ad0e857 commit f131676

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

graphql/type/definition.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from ..pyutils.cached_property import cached_property
66
from ..pyutils.ordereddict import OrderedDict
77
from ..utils.assert_valid_name import assert_valid_name
8+
from ..utils.undefined import Undefined
89

910

1011
def is_type(type):
@@ -478,11 +479,6 @@ def define_enum_values(type, value_map):
478479
return values
479480

480481

481-
class Undefined(object):
482-
"""A representation of an Undefined value distinct from a None value"""
483-
pass
484-
485-
486482
class GraphQLEnumValue(object):
487483
__slots__ = 'name', 'value', 'deprecation_reason', 'description'
488484

graphql/utils/undefined.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
class _Undefined(object):
2+
"""A representation of an Undefined value distinct from a None value"""
3+
24
def __bool__(self):
35
return False
46

0 commit comments

Comments
 (0)