Skip to content

Commit a3b8912

Browse files
lukasbkNico Cernek
authored and
Nico Cernek
committed
CLN: Type error fix in tests\tseries\offsets\test_yqm_offsets.py (pandas-dev#28996)
1 parent f3a498a commit a3b8912

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pandas/tests/tseries/offsets/test_offsets.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from datetime import date, datetime, time as dt_time, timedelta
2+
from typing import Type
23

34
import numpy as np
45
import pytest
@@ -92,7 +93,7 @@ def test_to_M8():
9293

9394

9495
class Base:
95-
_offset = None
96+
_offset = None # type: Type[DateOffset]
9697
d = Timestamp(datetime(2008, 1, 2))
9798

9899
timezones = [

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,3 @@ ignore_errors=True
186186

187187
[mypy-pandas.tests.tseries.offsets.test_offsets]
188188
ignore_errors=True
189-
190-
[mypy-pandas.tests.tseries.offsets.test_yqm_offsets]
191-
ignore_errors=True

0 commit comments

Comments
 (0)