fix: MyPy findings due to a mypy version upgrade were corrected

This commit is contained in:
Erik Wrede 2022-11-16 21:19:18 +01:00
parent b349632a82
commit ae19b27a2b
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):