diff --git a/pandas/tests/tseries/offsets/test_offsets.py b/pandas/tests/tseries/offsets/test_offsets.py index 81aff4211440e..bed8d2461f65d 100644 --- a/pandas/tests/tseries/offsets/test_offsets.py +++ b/pandas/tests/tseries/offsets/test_offsets.py @@ -1,5 +1,5 @@ from datetime import date, datetime, time as dt_time, timedelta -from typing import Type +from typing import Dict, List, Tuple, Type import numpy as np import pytest @@ -31,6 +31,7 @@ import pandas.tseries.offsets as offsets from pandas.tseries.offsets import ( FY5253, + BaseOffset, BDay, BMonthBegin, BMonthEnd, @@ -90,6 +91,7 @@ def test_to_M8(): ##### # DateOffset Tests ##### +_ApplyCases = List[Tuple[BaseOffset, Dict[datetime, datetime]]] class Base: @@ -741,7 +743,7 @@ def test_onOffset(self): for offset, d, expected in tests: assert_onOffset(offset, d, expected) - apply_cases = [] + apply_cases = [] # type: _ApplyCases apply_cases.append( ( BDay(), @@ -2629,7 +2631,7 @@ def test_onOffset(self, case): offset, d, expected = case assert_onOffset(offset, d, expected) - apply_cases = [] + apply_cases = [] # type: _ApplyCases apply_cases.append( ( CDay(), @@ -2876,7 +2878,7 @@ def test_onOffset(self, case): offset, d, expected = case assert_onOffset(offset, d, expected) - apply_cases = [] + apply_cases = [] # type: _ApplyCases apply_cases.append( ( CBMonthEnd(), @@ -3025,7 +3027,7 @@ def test_onOffset(self, case): offset, dt, expected = case assert_onOffset(offset, dt, expected) - apply_cases = [] + apply_cases = [] # type: _ApplyCases apply_cases.append( ( CBMonthBegin(), diff --git a/setup.cfg b/setup.cfg index d4657100c1291..3207e598ff6ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -159,6 +159,3 @@ ignore_errors=True [mypy-pandas.tests.series.test_operators] ignore_errors=True - -[mypy-pandas.tests.tseries.offsets.test_offsets] -ignore_errors=True