Skip to content

STY: whitespace before class docstringsd #28209

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

Merged
merged 1 commit into from
Aug 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion pandas/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@


class PandasObject(DirNamesMixin):

"""baseclass for various pandas objects"""

@property
Expand Down
8 changes: 4 additions & 4 deletions pandas/core/computation/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ def f(cls):
@disallow(_unsupported_nodes)
@add_ops(_op_classes)
class BaseExprVisitor(ast.NodeVisitor):

"""Custom ast walker. Parsers of other engines should subclass this class
"""
Custom ast walker. Parsers of other engines should subclass this class
if necessary.

Parameters
Expand Down Expand Up @@ -803,8 +803,8 @@ def __init__(self, env, engine, parser, preparser=lambda x: x):


class Expr:

"""Object encapsulating an expression.
"""
Object encapsulating an expression.

Parameters
----------
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/computation/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ def _validate_where(w):


class Expr(expr.Expr):

""" hold a pytables like expression, comprised of possibly multiple 'terms'

Parameters
Expand Down Expand Up @@ -573,7 +572,6 @@ def evaluate(self):


class TermValue:

""" hold a term value the we use to construct a condition/filter """

def __init__(self, value, converted, kind):
Expand Down
1 change: 0 additions & 1 deletion pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,6 @@ def _apply_filter(self, indices, dropna):


class GroupBy(_GroupBy):

"""
Class for grouping and aggregating relational data.

Expand Down
1 change: 0 additions & 1 deletion pandas/core/groupby/grouper.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def __repr__(self):


class Grouping:

"""
Holds the grouping information for a single key

Expand Down
1 change: 0 additions & 1 deletion pandas/core/groupby/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,6 @@ def _aggregate_series_pure_python(self, obj, func):


class BinGrouper(BaseGrouper):

"""
This is an internal Grouper class

Expand Down
1 change: 0 additions & 1 deletion pandas/core/indexes/frozen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


class FrozenList(PandasObject, list):

"""
Container that doesn't allow setting item *but*
because it's technically non-hashable, will be used
Expand Down
1 change: 0 additions & 1 deletion pandas/core/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def nargsort(items, kind="quicksort", ascending=True, na_position="last"):


class _KeyMapper:

"""
Ease my suffering. Map compressed group id -> key tuple
"""
Expand Down
1 change: 0 additions & 1 deletion pandas/io/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ def __next__(self) -> str:


class UTF8Recoder(BaseIterator):

"""
Iterator that reads an encoded stream and re-encodes the input to UTF-8
"""
Expand Down
1 change: 0 additions & 1 deletion pandas/io/packers.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ def __init__(


class Iterator:

""" manage the unpacking iteration,
close the file on completion """

Expand Down
14 changes: 0 additions & 14 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ def _is_metadata_of(group, parent_group):


class HDFStore:

"""
Dict-like IO interface for storing pandas objects in PyTables.

Expand Down Expand Up @@ -1546,7 +1545,6 @@ def _read_group(self, group, **kwargs):


class TableIterator:

""" define the iteration interface on a table

Parameters
Expand Down Expand Up @@ -1654,7 +1652,6 @@ def get_result(self, coordinates=False):


class IndexCol:

""" an index column description class

Parameters
Expand Down Expand Up @@ -1968,7 +1965,6 @@ def write_metadata(self, handler):


class GenericIndexCol(IndexCol):

""" an index which is not represented in the data of the table """

@property
Expand Down Expand Up @@ -2006,7 +2002,6 @@ def set_attr(self):


class DataCol(IndexCol):

""" a data holding column, by definition this is not indexable

Parameters
Expand Down Expand Up @@ -2456,7 +2451,6 @@ def set_attr(self):


class DataIndexableCol(DataCol):

""" represent a data column that can be indexed """

is_data_indexable = True
Expand All @@ -2479,15 +2473,13 @@ def get_atom_timedelta64(self, block):


class GenericDataIndexableCol(DataIndexableCol):

""" represent a generic pytables data column """

def get_attr(self):
pass


class Fixed:

""" represent an object in my store
facilitate read/write of various types of objects
this is an abstract base class
Expand Down Expand Up @@ -2655,7 +2647,6 @@ def delete(self, where=None, start=None, stop=None, **kwargs):


class GenericFixed(Fixed):

""" a generified fixed version """

_index_type_map = {DatetimeIndex: "datetime", PeriodIndex: "period"}
Expand Down Expand Up @@ -3252,7 +3243,6 @@ class FrameFixed(BlockManagerFixed):


class Table(Fixed):

""" represent a table:
facilitate read/write of various types of tables

Expand Down Expand Up @@ -4127,7 +4117,6 @@ def read_column(self, column, where=None, start=None, stop=None):


class WORMTable(Table):

""" a write-once read-many table: this format DOES NOT ALLOW appending to a
table. writing is a one-time operation the data are stored in a format
that allows for searching the data on disk
Expand All @@ -4149,7 +4138,6 @@ def write(self, **kwargs):


class LegacyTable(Table):

""" an appendable table: allow append/query/delete operations to a
(possibly) already existing appendable table this table ALLOWS
append (but doesn't require them), and stores the data in a format
Expand Down Expand Up @@ -4603,7 +4591,6 @@ def write(self, **kwargs):


class AppendableMultiFrameTable(AppendableFrameTable):

""" a frame with a multi-index """

table_type = "appendable_multiframe"
Expand Down Expand Up @@ -4962,7 +4949,6 @@ def _need_convert(kind):


class Selection:

"""
Carries out a selection operation on a tables.Table object.

Expand Down
1 change: 0 additions & 1 deletion pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ def _transaction_test(self):


class _TestSQLApi(PandasSQLTest):

"""
Base class to test the public API.

Expand Down
1 change: 0 additions & 1 deletion pandas/tests/reshape/test_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def sort_with_none(request):


class TestConcatAppendCommon:

"""
Test common dtype coercion rules between concat and append.
"""
Expand Down