mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +03:00
Remove unused field types
This commit is contained in:
parent
c408c233ea
commit
fdb1bb30bc
|
@ -187,24 +187,6 @@ class Field(object):
|
|||
return obj
|
||||
|
||||
|
||||
class NativeField(Field):
|
||||
|
||||
def __init__(self, field=None):
|
||||
super(NativeField, self).__init__(None)
|
||||
self.field = field
|
||||
|
||||
def get_field(self, schema):
|
||||
return self.field
|
||||
|
||||
@memoize
|
||||
def internal_field(self, schema):
|
||||
return self.get_field(schema)
|
||||
|
||||
@memoize
|
||||
def internal_type(self, schema):
|
||||
return self.internal_field(schema).type
|
||||
|
||||
|
||||
class LazyField(Field):
|
||||
|
||||
@memoize
|
||||
|
@ -218,24 +200,6 @@ class LazyField(Field):
|
|||
return self.inner_field(schema).internal_field(schema)
|
||||
|
||||
|
||||
class LazyNativeField(NativeField):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(LazyNativeField, self).__init__(None, *args, **kwargs)
|
||||
|
||||
def get_field(self, schema):
|
||||
raise NotImplementedError(
|
||||
"get_field function not implemented for %s LazyField" % self.__class__)
|
||||
|
||||
@memoize
|
||||
def internal_field(self, schema):
|
||||
return self.get_field(schema)
|
||||
|
||||
@memoize
|
||||
def internal_type(self, schema):
|
||||
return self.internal_field(schema).type
|
||||
|
||||
|
||||
class TypeField(Field):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user