Skip to content

Commit

Permalink
added type annotation to JSONDtype.na_value (#31718)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaturnFromTitan authored Feb 5, 2020
1 parent cc4a3e9 commit daf5bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/extension/json/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import random
import string
import sys
from typing import Type
from typing import Any, Mapping, Type

import numpy as np

Expand All @@ -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"]:
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit daf5bb4

Please sign in to comment.