Skip to content

Commit daf5bb4

Browse files
added type annotation to JSONDtype.na_value (#31718)
1 parent cc4a3e9 commit daf5bb4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/tests/extension/json/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import random
1717
import string
1818
import sys
19-
from typing import Type
19+
from typing import Any, Mapping, Type
2020

2121
import numpy as np
2222

@@ -27,7 +27,7 @@
2727
class JSONDtype(ExtensionDtype):
2828
type = abc.Mapping
2929
name = "json"
30-
na_value = UserDict()
30+
na_value: Mapping[str, Any] = UserDict()
3131

3232
@classmethod
3333
def construct_array_type(cls) -> Type["JSONArray"]:

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ ignore_errors=True
138138
[mypy-pandas.tests.extension.decimal.test_decimal]
139139
ignore_errors=True
140140

141-
[mypy-pandas.tests.extension.json.array]
142-
ignore_errors=True
143-
144141
[mypy-pandas.tests.extension.json.test_json]
145142
ignore_errors=True
146143

0 commit comments

Comments
 (0)