INNER CODE UNIT · Python
TypeRef
gsmith257-cyber/GraphCrawler · clairvoyance/graphql.py:166
class TypeRef:
def __init__(
self,
name: str,
kind: str,
is_list: bool = False,
non_null_item: bool = False,
non_null: bool = False,
):
if not is_list and non_null_item:
raise Exception("elements can't be NON_NULL if TypeRef is not LIST")
self.name = name
self.kind = kind
self.is_list = is_list
self.non_null = non_null
self.list = self.is_list
self.non_null_item = non_null_item