Skip to content

Commit 388ed3a

Browse files
committed
CLN: remove empty class creation parenteseses
1 parent d024aae commit 388ed3a

19 files changed

+30
-30
lines changed

pandas/tests/dtypes/test_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def test_mixed_dtypes_remain_object_array(self):
498498
class TestTypeInference:
499499

500500
# Dummy class used for testing with Python objects
501-
class Dummy():
501+
class Dummy:
502502
pass
503503

504504
def test_inferred_dtype_fixture(self, any_skipna_inferred_dtype):

pandas/tests/frame/test_alter_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import pandas.util.testing as tm
1616

1717

18-
class TestDataFrameAlterAxes():
18+
class TestDataFrameAlterAxes:
1919

2020
def test_set_index_directly(self, float_string_frame):
2121
df = float_string_frame

pandas/tests/frame/test_apply.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def int_frame_const_col():
2929
return df
3030

3131

32-
class TestDataFrameApply():
32+
class TestDataFrameApply:
3333

3434
def test_apply(self, float_frame):
3535
with np.errstate(all='ignore'):
@@ -829,7 +829,7 @@ def zip_frames(frames, axis=1):
829829
return pd.DataFrame(zipped)
830830

831831

832-
class TestDataFrameAggregate():
832+
class TestDataFrameAggregate:
833833

834834
def test_agg_transform(self, axis, float_frame):
835835
other_axis = 1 if axis in {0, 'index'} else 0

pandas/tests/frame/test_asof.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def date_range_frame():
1717
return DataFrame({'A': np.arange(N), 'B': np.arange(N)}, index=rng)
1818

1919

20-
class TestFrameAsof():
20+
class TestFrameAsof:
2121

2222
def test_basic(self, date_range_frame):
2323
df = date_range_frame

pandas/tests/frame/test_block_internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# structure
2020

2121

22-
class TestDataFrameBlockInternals():
22+
class TestDataFrameBlockInternals:
2323
def test_setitem_invalidates_datetime_index_freq(self):
2424
# GH#24096 altering a datetime64tz column inplace invalidates the
2525
# `freq` attribute on the underlying DatetimeIndex

pandas/tests/frame/test_combine_concat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pandas.util.testing import assert_frame_equal, assert_series_equal
1212

1313

14-
class TestDataFrameConcatCommon():
14+
class TestDataFrameConcatCommon:
1515

1616
def test_concat_multiple_frames_dtypes(self):
1717

@@ -532,7 +532,7 @@ def test_concat_astype_dup_col(self):
532532
tm.assert_frame_equal(result, expected)
533533

534534

535-
class TestDataFrameCombineFirst():
535+
class TestDataFrameCombineFirst:
536536

537537
def test_combine_first_mixed(self):
538538
a = Series(['a', 'b'], index=lrange(2))
@@ -867,7 +867,7 @@ def test_concat_datetime_datetime64_frame(self):
867867
pd.concat([df1, df2_obj])
868868

869869

870-
class TestDataFrameUpdate():
870+
class TestDataFrameUpdate:
871871

872872
def test_update_nan(self):
873873
# #15593 #15617

pandas/tests/frame/test_constructors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ def __len__(self, n):
10011001

10021002
def test_constructor_iterable(self):
10031003
# GH 21987
1004-
class Iter():
1004+
class Iter:
10051005
def __iter__(self):
10061006
for i in range(10):
10071007
yield [1, 2, 3]

pandas/tests/frame/test_missing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _skip_if_no_pchip():
2222
pytest.skip('scipy.interpolate.pchip missing')
2323

2424

25-
class TestDataFrameMissingData():
25+
class TestDataFrameMissingData:
2626

2727
def test_dropEmptyRows(self, float_frame):
2828
N = len(float_frame.index)
@@ -644,7 +644,7 @@ def test_fill_value_when_combine_const(self):
644644
assert_frame_equal(res, exp)
645645

646646

647-
class TestDataFrameInterpolate():
647+
class TestDataFrameInterpolate:
648648

649649
def test_interp_basic(self):
650650
df = DataFrame({'A': [1, 2, np.nan, 4],

pandas/tests/frame/test_mutate_columns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Column add, remove, delete.
1111

1212

13-
class TestDataFrameMutateColumns():
13+
class TestDataFrameMutateColumns:
1414

1515
def test_assign(self):
1616
df = DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})

pandas/tests/groupby/test_grouping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_getitem_numeric_column_names(self):
9393
# grouping
9494
# --------------------------------
9595

96-
class TestGrouping():
96+
class TestGrouping:
9797

9898
def test_grouper_index_types(self):
9999
# related GH5375
@@ -556,7 +556,7 @@ def test_list_grouper_with_nat(self):
556556
# get_group
557557
# --------------------------------
558558

559-
class TestGetGroup():
559+
class TestGetGroup:
560560
def test_get_group(self):
561561
# GH 5267
562562
# be datelike friendly
@@ -660,7 +660,7 @@ def test_gb_key_len_equal_axis_len(self):
660660
# groups & iteration
661661
# --------------------------------
662662

663-
class TestIteration():
663+
class TestIteration:
664664

665665
def test_groups(self, df):
666666
grouped = df.groupby(['A'])

0 commit comments

Comments
 (0)