Skip to content

Commit

Permalink
Fix existing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Nov 4, 2021
1 parent d2bbd4e commit 270a73e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdmetrics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_subclasses(cls, include_parents=False):
Whether to include subclasses which are parents to
other classes. Defaults to ``False``.
"""
subclasses = dict()
subclasses = {}
for child in cls.__subclasses__():
grandchildren = child.get_subclasses(include_parents)
subclasses.update(grandchildren)
Expand Down
1 change: 1 addition & 0 deletions sdmetrics/single_table/privacy/numerical_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class NumericalSklearnAttacker(PrivacyAttackerModel):
skl_learner (Class):
A (wrapped) sklearn classifier class that can be called with no arguments.
"""

SKL_LEARNER = None

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion sdmetrics/single_table/privacy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def majority(samples, ignore_none=True):


def count_frequency(samples, target):
"""Calculate how frequent an target attribute appear in a list
"""Calculate how frequent an target attribute appear in a list.
Arguments:
samples (list):
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ universal = 1
[flake8]
max-line-length = 99
exclude = docs, .tox, .git, __pycache__, .ipynb_checkpoints
ignore = SFS3, W503

[isort]
include_trailing_comment = True
Expand Down

0 comments on commit 270a73e

Please sign in to comment.