-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base implementation of interface #37
Conversation
|
||
class GraphQLInterface(GraphQLObject): | ||
__types__: Sequence[Type[GraphQLType]] | ||
__implements__: Optional[Iterable[Union[Type[GraphQLType], Type[Enum]]]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__interface__
is mixed with __types__
. Types can't implement enums, but can have dependency on them.
from .description import get_description_node | ||
|
||
|
||
class GraphQLInterface(GraphQLObject): | ||
__types__: Sequence[Type[GraphQLType]] | ||
__implements__: Optional[Iterable[Union[Type[GraphQLType], Type[Enum]]]] | ||
__valid_type__ = InterfaceTypeDefinitionNode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets repeat __abstract__: bool = True
for posterity sake.
Fixes #28