Skip to content

Commit

Permalink
rm defunct pylint references
Browse files Browse the repository at this point in the history
  • Loading branch information
jab committed Dec 29, 2022
1 parent e5849e2 commit aebc3d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/thanks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ Projects
- `mypy <https://mypy.readthedocs.io>`__
- `ruff <https://github.com/charliermarsh/ruff>`__
- `Flake8 <https://flake8.pycqa.org>`__
- `Pylint <https://www.pylint.org>`__
- `pre-commit <https://pre-commit.com>`__
2 changes: 1 addition & 1 deletion tests/property_tests/_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _bi_and_map(bi_types, map_types=MAPPING_TYPES, init_items=L_PAIRS_NODUP):

_cmpdict = lambda i: (OrderedDict if isinstance(i, OrderedBidictBase) else dict) # noqa: E731
BI_AND_CMPDICT_FROM_SAME_ITEMS = L_PAIRS_NODUP.map(
lambda items: (lambda b: (b, _cmpdict(b)(items)))(_bidict_strat(BIDICT_TYPES, items)) # pylint: disable=unnecessary-direct-lambda-call
lambda items: (lambda b: (b, _cmpdict(b)(items)))(_bidict_strat(BIDICT_TYPES, items))
)

ARGS_ATOM = st.tuples(ATOMS)
Expand Down
5 changes: 2 additions & 3 deletions tests/property_tests/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def test_pickle_orderedbi_whose_order_disagrees_w_fwdm():
"""An OrderedBidict whose order does not match its _fwdm's should pickle with the correct order."""
ob = OrderedBidict({0: 1, 2: 3})
# First get ob._fwdm's order to disagree with ob's, and confirm:
ob.inverse[1] = 4 # pylint: disable=unsupported-assignment-operation
ob.inverse[1] = 4
assert next(iter(ob.items())) == (4, 1)
assert next(iter(ob.inverse.items())) == (1, 4)
assert next(iter(ob._fwdm.items())) == (2, 3)
Expand Down Expand Up @@ -557,7 +557,7 @@ def test_deepcopy(bi):
def test_iteritems_raises_on_too_many_args():
""":func:`iteritems` should raise if given too many arguments."""
with pytest.raises(TypeError):
iteritems('too', 'many', 'args') # pylint: disable=too-many-function-args
iteritems('too', 'many', 'args')


@given(st.I_PAIRS, st.DICTS_KW_PAIRS)
Expand Down Expand Up @@ -603,7 +603,6 @@ def test_views(bi, data):
"""Optimized view APIs should be equivalent to using the corresponding MappingViews from :mod:`collections.abc`."""
for check, oracle in (bi.keys(), KeysView(bi)), (bi.values(), ValuesView(bi)), (bi.items(), ItemsView(bi)):
# 0-arity methods: __len__, __iter__
# pylint: disable=unnecessary-dunder-call
assert check.__len__() == oracle.__len__()
assert list(check.__iter__()) == list(oracle.__iter__())
# 1-arity methods: __contains__
Expand Down
2 changes: 1 addition & 1 deletion tests/test_class_relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_abstract_bimap_init_fails():
"""Instantiating `AbstractBimap` should fail with expected TypeError."""
excmatch = r"Can't instantiate abstract class AbstractBimap with abstract methods .* inverse"
with pytest.raises(TypeError, match=excmatch):
AbstractBimap() # pylint: disable=abstract-class-instantiated
AbstractBimap()


def test_bimap_inverse_notimplemented():
Expand Down

0 comments on commit aebc3d0

Please sign in to comment.