Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy errors in testcommon py #29179

Merged
merged 114 commits into from
Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
b34fc3b
Replacing list concatenation with "+"
Oct 19, 2019
a266c69
Update test_common.py
Oct 22, 2019
4d27ef2
Update test_common.py
Oct 26, 2019
c208bbe
BUG: Fix TypeError in _cython_agg_blocks (#29035)
jbrockmendel Oct 17, 2019
0e556c2
CI: xfail on numpy 1.18 (#29057)
jbrockmendel Oct 17, 2019
2cfc88f
Stop catching TypeError in groupby methods (#29060)
jbrockmendel Oct 17, 2019
7b8c744
API: Restore getting name from MultiIndex level (#29061)
TomAugspurger Oct 18, 2019
5fbbe9e
fixed issue of mypy for test_ujson (#29022)
iamrajhans Oct 18, 2019
5506b82
CLN: derivation of nogil param (#29047)
jbrockmendel Oct 18, 2019
ad01c8b
REF: remove groupby_helper (#29040)
jbrockmendel Oct 18, 2019
2d2f220
ENH: Informative dtype message for for assert_series_equal (#28993)
moi90 Oct 18, 2019
009ffc4
TST: add regression test for all-none-groupby (#29067)
crepererum Oct 18, 2019
3940401
Fix mypy errors for pandas\tests\*: test_convert_to.py (#28965)
lrm25 Oct 18, 2019
b106ef3
CLN: catch less in groupby (#29077)
jbrockmendel Oct 18, 2019
429ed6e
CLN: simplify take_2d_multi (#29065)
jbrockmendel Oct 18, 2019
ac4469c
REF: use fused types in algos_rank_helper (#29044)
jbrockmendel Oct 18, 2019
1939942
DOC: updated categorical docstring (#29068)
javad94 Oct 18, 2019
6ce48d9
CLN: tighten exception catching in indexes (#29078)
jbrockmendel Oct 19, 2019
b036967
[#22550] Remove TestData from series-tests test_quantile.py (#29096)
SaturnFromTitan Oct 19, 2019
ac45185
comments, catch less (#29088)
jbrockmendel Oct 19, 2019
6c93ef1
REF: remove algos_rank_helper (#29086)
jbrockmendel Oct 19, 2019
a8cbd11
CLN: Exception in DataFrame._reduce (#29085)
jbrockmendel Oct 19, 2019
1f20f63
[#22550] Remove TestData from series-tests test_operators.py (#29084)
SaturnFromTitan Oct 19, 2019
d5f430a
TST: 2d index when constructing dataframe (#25416). (#29083)
jhereth Oct 19, 2019
78d3420
TST: regression test for groupby with datetime and timedelta (#15562)…
jhereth Oct 19, 2019
0f93b07
CLN: cython and docstring cleanups (#29089)
jbrockmendel Oct 19, 2019
1846dc6
BUG: parse_time_string failing to raise TypeError (#29098)
jbrockmendel Oct 19, 2019
1f49aa8
Add a regression test for the timezone issue (#29097)
grigoriosgiann Oct 20, 2019
08d66f3
Fix typing errors (#29115)
AbhijeetKrishnan Oct 20, 2019
140102b
Fix typing errors (#29114)
AbhijeetKrishnan Oct 20, 2019
c8dd72a
Fix mypy errors (#29108)
AbhijeetKrishnan Oct 21, 2019
3c80277
fix #28926 mypy error in pandas\tests\arrays\test_array.py (#28970)
yogendrasoni Oct 21, 2019
1e12510
TST: Test key dtype cast after merge (#29030)
albertvillanova Oct 22, 2019
06ba9f5
CLN: Type error fix in tests\tseries\offsets\test_yqm_offsets.py (#28…
lukasbk Oct 22, 2019
4892735
CLN: Type error fix in tests\tseries\offsets\test_yqm_offsets.py (#28…
lukasbk Oct 22, 2019
f992870
PERF: Benchmark merge with non-int64 and tolerance (#28922) (#28974)
jjlkant Oct 22, 2019
c4f0b5c
Pandas get_dummies validate `columns` input (#28463)
R1j1t Oct 22, 2019
4feb8ac
fix Rolling for multi-index and reversed index. (#28297)
leftys Oct 22, 2019
cf22fcb
BUG: set_precision format fixed (#13257) (#27934)
AntonioAndraues Oct 22, 2019
217358f
WEB: Adding new pandas logo (#28948)
datapythonista Oct 22, 2019
46af140
CLN: remove versionadded:: 0.19.0 and earlier (#29127)
simonjayhawkins Oct 22, 2019
bd64ab7
CLN: remove versionadded:: 0.20 (#29126)
simonjayhawkins Oct 22, 2019
d63cfa2
BUG: fix AttributeError raised in libreduction (#29100)
jbrockmendel Oct 22, 2019
d9750c1
REF: avoid getattr pattern for rank_1d, rank_2d (#29137)
jbrockmendel Oct 22, 2019
3df6488
REF: avoid getattr pattern for diff_2d; use fused types (#29120)
jbrockmendel Oct 22, 2019
d449b73
REF: avoid getattr pattern for unstack, assorted cleanups (#29121)
jbrockmendel Oct 22, 2019
19f76cd
REF: avoid getattr pattern for join_indexer (#29117)
jbrockmendel Oct 22, 2019
4ff76bd
Remove TestData from series-tests test_replace.py (#29147)
SaturnFromTitan Oct 22, 2019
f9020a2
TST: stop suppressing plot test exceptions, xfail broken test (#29099)
jbrockmendel Oct 22, 2019
49bb2e1
TST: Add regression test for Series dropping uint datatype (#18311) (…
Reksbril Oct 22, 2019
2833cb4
CLN: Exception in NDFrame._maybe_update_cacher (#29066)
jbrockmendel Oct 22, 2019
219d18c
REF: Store metadata in an attrs dict (#29062)
TomAugspurger Oct 22, 2019
c594594
Remove TestData from series-tests test_sorting.py (#29149)
SaturnFromTitan Oct 22, 2019
1707f2a
Remove TestData from series-tests test_timeseries.py (#29150)
SaturnFromTitan Oct 22, 2019
4dc532f
minor inconsistency in Categorical.remove_categories error message (#…
punndcoder28 Oct 22, 2019
a0446b0
Remove TestData from series-tests test_api.py (#29153)
SaturnFromTitan Oct 22, 2019
38b923a
CLN: replace Dict with Mapping to annotate arguments (#29155)
simonjayhawkins Oct 22, 2019
5ce7b1a
DOC: attempt to fix contributors for 0.24.0, 0.25.0/1/2 (#29152)
jgehrcke Oct 22, 2019
052a64a
Remove unnecessary check for Python >= 3.5 (#29167)
gfyoung Oct 22, 2019
41933cc
REF: avoid getattr pattern for groupby-rank functions (#29166)
jbrockmendel Oct 22, 2019
22a8337
TYPING : Series.name -> Optional[Hashable] (#29164)
simonjayhawkins Oct 22, 2019
586a9e7
Clarify referred command for flake8 caveat (#29168)
gfyoung Oct 22, 2019
1e9a047
CLN: Fix typing in pandas\tests\arrays\test_datetimelike.py (#28926) …
jjlkant Oct 23, 2019
3fbb0bc
BUG: fix TypeError raised in maybe_downcast_numeric (#29103)
jbrockmendel Oct 23, 2019
cc93fdc
Stop catching TypeError in _aggregate_item_by_item (#29177)
jbrockmendel Oct 23, 2019
1979625
CLN: Assorted cleanups (#29175)
jbrockmendel Oct 23, 2019
dd5d1c5
Remove TestData from series-tests test_repr.py (#29148)
SaturnFromTitan Oct 23, 2019
091bb06
BUG/TST: ensure groupby.agg preserves extension dtype (#29144)
jorisvandenbossche Oct 23, 2019
6983800
Period 29073 (#29159)
HughKelley Oct 23, 2019
9a98680
TST: Test Series integer mod behavior on string (#29180)
gfyoung Oct 23, 2019
0aa913e
To string with encoding (#28951)
mohitanand001 Oct 23, 2019
b634636
DOC: Update the LaTeX author. (#29184)
TomAugspurger Oct 23, 2019
4879491
TST: Document and test na_filter in read_excel (#29171)
gfyoung Oct 23, 2019
bec7043
CI: Avoid timeouts in 38 build (#29185)
WillAyd Oct 23, 2019
eda17f9
BUG: Increase range of dates for holiday calculations (#27790)
rhstanton Oct 24, 2019
c56d68a
CLN: preempt TypeError for EAs in groupby agg_series (#29186)
jbrockmendel Oct 24, 2019
051e152
CLN: dont catch Exception in _aggregate_frame (#29194)
jbrockmendel Oct 24, 2019
fbe52f8
CLN: remove Block._try_coerce_arg (#29139)
jbrockmendel Oct 24, 2019
96833c3
Remove TestData from series-tests test_rank.py (#29101)
SaturnFromTitan Oct 24, 2019
cfd0bb3
CLN: remove noqa E241 #29207 (#29209)
kaathi524 Oct 24, 2019
8d9005d
API: Change matplotlib formatter registration (#28722)
TomAugspurger Oct 25, 2019
cb4130b
Remove TestData in frame tests in multiple files - part2 (#29222)
SaturnFromTitan Oct 25, 2019
5ea715e
CLN: Remove unnecessary sys.version_info checks (#29210)
gfyoung Oct 25, 2019
a05829b
Remove TestData in frame tests in multiple files (#29172)
SaturnFromTitan Oct 25, 2019
4abe6d8
BUG: fix non-existent variable in NDFrame.interpolate (#29142)
ellequelle Oct 25, 2019
4d519f9
ENH: Add StringArray.__arrow_array__ for conversion to Arrow (#29182)
jorisvandenbossche Oct 25, 2019
08cf353
CLN: Add types in a handful of places (#29178)
jbrockmendel Oct 25, 2019
f2c42dc
Changing logo in README and removing old logo (#29215)
datapythonista Oct 25, 2019
946781d
ENH: groupby missing data in index (#28097)
proost Oct 25, 2019
291afc3
TST: Add test for nested JSON normalization (#29225)
gfyoung Oct 25, 2019
a23a589
BUG: fixes formatted value error for missing sheet (#27676) (#27677)
JasperVanDenBosch Oct 25, 2019
8f9769c
CLN: AttributeError in _wrap_applied_output (#29195)
jbrockmendel Oct 25, 2019
adfd4de
CLN: simplify core.algorithms (#29199)
jbrockmendel Oct 25, 2019
58aa92b
Update apt-get archives (#29230)
WillAyd Oct 25, 2019
53cc892
Removed raise_from_traceback (#29174)
WillAyd Oct 26, 2019
846bf91
CLN: remove simplejson (#29169)
simonjayhawkins Oct 26, 2019
0d69e54
BENCH: Improve perf of rolling.Apply.time_rolling (#29239)
qwhelan Oct 28, 2019
c1f19f2
CLN: remove algorithms.match (#29249)
jbrockmendel Oct 28, 2019
c006074
CLN: fix mypy errors in pandas\tests\indexes\interval\test_base.py #2…
srcole Oct 28, 2019
6758c4d
Merge remote-tracking branch 'upstream/master' into Fix-mypy-errors-i…
Oct 29, 2019
8c143b6
Update setup.cfg
Oct 29, 2019
9708036
Update test_common.py
Nov 1, 2019
84fe5d0
Applied black formatting to test_common.py
Nov 1, 2019
e92a6eb
Update test_common.py
Nov 1, 2019
ca180a6
Update test_common.py
Nov 1, 2019
d21b9b2
Update test_common.py
Nov 1, 2019
0dc0cc5
Updating type annotation in test_common.py
Nov 2, 2019
05f3b16
Remove unused import from test_common.py
Nov 2, 2019
8d21fe0
Trying to fix Azure Pipelines
Nov 3, 2019
a3eea24
Replacing List with Sequence and removing Any
Nov 3, 2019
d01d5bb
Applying black formatting
Nov 3, 2019
3f37553
Replaciing type stubs with List
Nov 6, 2019
3ba0b50
Remove unused import from test_common.py
Nov 6, 2019
1fe031d
Merge remote-tracking branch 'upstream/master' into Fix-mypy-errors-i…
Nov 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions pandas/tests/dtypes/test_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import List

import numpy as np
import pytest

Expand Down Expand Up @@ -322,9 +324,13 @@ def test_is_datetimelike():
assert com.is_datetimelike(s)


integer_dtypes = [] # type: List


@pytest.mark.parametrize(
"dtype",
[pd.Series([1, 2])]
integer_dtypes
+ [pd.Series([1, 2])]
+ ALL_INT_DTYPES
+ to_numpy_dtypes(ALL_INT_DTYPES)
+ ALL_EA_INT_DTYPES
Expand All @@ -350,9 +356,13 @@ def test_is_not_integer_dtype(dtype):
assert not com.is_integer_dtype(dtype)


signed_integer_dtypes = [] # type: List


@pytest.mark.parametrize(
"dtype",
[pd.Series([1, 2])]
signed_integer_dtypes
+ [pd.Series([1, 2])]
+ SIGNED_INT_DTYPES
+ to_numpy_dtypes(SIGNED_INT_DTYPES)
+ SIGNED_EA_INT_DTYPES
Expand Down Expand Up @@ -382,9 +392,13 @@ def test_is_not_signed_integer_dtype(dtype):
assert not com.is_signed_integer_dtype(dtype)


unsigned_integer_dtypes = [] # type: List


@pytest.mark.parametrize(
"dtype",
[pd.Series([1, 2], dtype=np.uint32)]
unsigned_integer_dtypes
+ [pd.Series([1, 2], dtype=np.uint32)]
+ UNSIGNED_INT_DTYPES
+ to_numpy_dtypes(UNSIGNED_INT_DTYPES)
+ UNSIGNED_EA_INT_DTYPES
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ ignore_errors=True
[mypy-pandas.tests.arithmetic.test_datetime64]
ignore_errors=True

[mypy-pandas.tests.dtypes.test_common]
ignore_errors=True

[mypy-pandas.tests.extension.decimal.test_decimal]
ignore_errors=True

Expand Down