mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-16 19:12:21 +03:00
chore: appease linter
This commit is contained in:
parent
3943353e66
commit
692e98589f
|
@ -13,12 +13,18 @@ from .node import is_node, AbstractNode
|
|||
|
||||
|
||||
def get_edge_class(
|
||||
connection_class: Type["Connection"], _node: Type[AbstractNode], base_name: str, strict_types: bool = False
|
||||
connection_class: Type["Connection"],
|
||||
_node: Type[AbstractNode],
|
||||
base_name: str,
|
||||
strict_types: bool = False,
|
||||
):
|
||||
edge_class = getattr(connection_class, "Edge", None)
|
||||
|
||||
class EdgeBase:
|
||||
node = Field(NonNull(_node) if strict_types else _node, description="The item at the end of the edge")
|
||||
node = Field(
|
||||
NonNull(_node) if strict_types else _node,
|
||||
description="The item at the end of the edge"
|
||||
)
|
||||
cursor = String(required=True, description="A cursor for use in pagination")
|
||||
|
||||
class EdgeMeta:
|
||||
|
@ -83,7 +89,9 @@ class Connection(ObjectType):
|
|||
abstract = True
|
||||
|
||||
@classmethod
|
||||
def __init_subclass_with_meta__(cls, node=None, name=None, strict_types=False, _meta=None, **options):
|
||||
def __init_subclass_with_meta__(
|
||||
cls, node=None, name=None, strict_types=False, _meta=None, **options
|
||||
):
|
||||
if not _meta:
|
||||
_meta = ConnectionOptions(cls)
|
||||
assert node, f"You have to provide a node in {cls.__name__}.Meta"
|
||||
|
|
Loading…
Reference in New Issue
Block a user