From daf5bb4005e03f218992a8205fa4f81996eecc3c Mon Sep 17 00:00:00 2001 From: Martin Winkel Date: Wed, 5 Feb 2020 21:59:21 +0100 Subject: [PATCH] added type annotation to JSONDtype.na_value (#31718) --- pandas/tests/extension/json/array.py | 4 ++-- setup.cfg | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pandas/tests/extension/json/array.py b/pandas/tests/extension/json/array.py index 9e741bb7f267c..1ba1b872fa5e2 100644 --- a/pandas/tests/extension/json/array.py +++ b/pandas/tests/extension/json/array.py @@ -16,7 +16,7 @@ import random import string import sys -from typing import Type +from typing import Any, Mapping, Type import numpy as np @@ -27,7 +27,7 @@ class JSONDtype(ExtensionDtype): type = abc.Mapping name = "json" - na_value = UserDict() + na_value: Mapping[str, Any] = UserDict() @classmethod def construct_array_type(cls) -> Type["JSONArray"]: diff --git a/setup.cfg b/setup.cfg index cf931f52489a8..c298aa652824c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -138,9 +138,6 @@ ignore_errors=True [mypy-pandas.tests.extension.decimal.test_decimal] ignore_errors=True -[mypy-pandas.tests.extension.json.array] -ignore_errors=True - [mypy-pandas.tests.extension.json.test_json] ignore_errors=True