fix: MyPy findings due to a mypy version upgrade were corrected (#1477)

This commit is contained in:
Erik Wrede 2022-11-16 21:23:37 +01:00 committed by GitHub
parent b349632a82
commit a2b63d8d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class InputObjectTypeOptions(BaseOptions):
container = None # type: InputObjectTypeContainer
class InputObjectTypeContainer(dict, BaseType):
class InputObjectTypeContainer(dict, BaseType): # type: ignore
class Meta:
abstract = True

View File

@ -53,7 +53,7 @@ IgnoreType = Union[Callable[[str], bool], Pattern, str]
def depth_limit_validator(
max_depth: int,
ignore: Optional[List[IgnoreType]] = None,
callback: Callable[[Dict[str, int]], None] = None,
callback: Optional[Callable[[Dict[str, int]], None]] = None,
):
class DepthLimitValidator(ValidationRule):
def __init__(self, validation_context: ValidationContext):