File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
+ from typing import List , Optional
2
3
3
4
import pytest
4
5
5
6
from pandas import read_csv , read_table
6
7
7
8
8
9
class BaseParser :
9
- engine = None
10
+ engine = None # type: Optional[str]
10
11
low_memory = True
11
- float_precision_choices = []
12
+ float_precision_choices = [] # type: List[Optional[str]]
12
13
13
14
def update_kwargs (self , kwargs ):
14
15
kwargs = kwargs .copy ()
@@ -59,11 +60,11 @@ def csv1(csv_dir_path):
59
60
60
61
_py_parsers_only = [_pythonParser ]
61
62
_c_parsers_only = [_cParserHighMemory , _cParserLowMemory ]
62
- _all_parsers = _c_parsers_only + _py_parsers_only
63
+ _all_parsers = [ * _c_parsers_only , * _py_parsers_only ]
63
64
64
65
_py_parser_ids = ["python" ]
65
66
_c_parser_ids = ["c_high" , "c_low" ]
66
- _all_parser_ids = _c_parser_ids + _py_parser_ids
67
+ _all_parser_ids = [ * _c_parser_ids , * _py_parser_ids ]
67
68
68
69
69
70
@pytest .fixture (params = _all_parsers , ids = _all_parser_ids )
Original file line number Diff line number Diff line change @@ -205,9 +205,6 @@ ignore_errors=True
205
205
[mypy-pandas.tests.io.json.test_ujson]
206
206
ignore_errors =True
207
207
208
- [mypy-pandas.tests.io.parser.conftest]
209
- ignore_errors =True
210
-
211
208
[mypy-pandas.tests.io.test_sql]
212
209
ignore_errors =True
213
210
You can’t perform that action at this time.
0 commit comments