mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 04:53:55 +03:00
fix: MyPy findings due to a mypy version upgrade were corrected (#1477)
This commit is contained in:
parent
b349632a82
commit
a2b63d8d84
|
@ -14,7 +14,7 @@ class InputObjectTypeOptions(BaseOptions):
|
||||||
container = None # type: InputObjectTypeContainer
|
container = None # type: InputObjectTypeContainer
|
||||||
|
|
||||||
|
|
||||||
class InputObjectTypeContainer(dict, BaseType):
|
class InputObjectTypeContainer(dict, BaseType): # type: ignore
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ IgnoreType = Union[Callable[[str], bool], Pattern, str]
|
||||||
def depth_limit_validator(
|
def depth_limit_validator(
|
||||||
max_depth: int,
|
max_depth: int,
|
||||||
ignore: Optional[List[IgnoreType]] = None,
|
ignore: Optional[List[IgnoreType]] = None,
|
||||||
callback: Callable[[Dict[str, int]], None] = None,
|
callback: Optional[Callable[[Dict[str, int]], None]] = None,
|
||||||
):
|
):
|
||||||
class DepthLimitValidator(ValidationRule):
|
class DepthLimitValidator(ValidationRule):
|
||||||
def __init__(self, validation_context: ValidationContext):
|
def __init__(self, validation_context: ValidationContext):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user