rm defunct pylint references

This commit is contained in:
Joshua Bronson 2022-12-29 15:46:23 -05:00
parent e5849e210b
commit aebc3d08f5
4 changed files with 4 additions and 6 deletions

View File

@ -55,5 +55,4 @@ Projects
- `mypy <https://mypy.readthedocs.io>`__ - `mypy <https://mypy.readthedocs.io>`__
- `ruff <https://github.com/charliermarsh/ruff>`__ - `ruff <https://github.com/charliermarsh/ruff>`__
- `Flake8 <https://flake8.pycqa.org>`__ - `Flake8 <https://flake8.pycqa.org>`__
- `Pylint <https://www.pylint.org>`__
- `pre-commit <https://pre-commit.com>`__ - `pre-commit <https://pre-commit.com>`__

View File

@ -112,7 +112,7 @@ OBI_AND_OMAP_FROM_SAME_ITEMS_DIFF_ORDER = st.tuples(
_cmpdict = lambda i: (OrderedDict if isinstance(i, OrderedBidictBase) else dict) # noqa: E731 _cmpdict = lambda i: (OrderedDict if isinstance(i, OrderedBidictBase) else dict) # noqa: E731
BI_AND_CMPDICT_FROM_SAME_ITEMS = L_PAIRS_NODUP.map( 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) ARGS_ATOM = st.tuples(ATOMS)

View File

@ -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.""" """An OrderedBidict whose order does not match its _fwdm's should pickle with the correct order."""
ob = OrderedBidict({0: 1, 2: 3}) ob = OrderedBidict({0: 1, 2: 3})
# First get ob._fwdm's order to disagree with ob's, and confirm: # 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.items())) == (4, 1)
assert next(iter(ob.inverse.items())) == (1, 4) assert next(iter(ob.inverse.items())) == (1, 4)
assert next(iter(ob._fwdm.items())) == (2, 3) assert next(iter(ob._fwdm.items())) == (2, 3)
@ -557,7 +557,7 @@ def test_deepcopy(bi):
def test_iteritems_raises_on_too_many_args(): def test_iteritems_raises_on_too_many_args():
""":func:`iteritems` should raise if given too many arguments.""" """:func:`iteritems` should raise if given too many arguments."""
with pytest.raises(TypeError): 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) @given(st.I_PAIRS, st.DICTS_KW_PAIRS)
@ -603,7 +603,6 @@ def test_views(bi, data):
"""Optimized view APIs should be equivalent to using the corresponding MappingViews from :mod:`collections.abc`.""" """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)): for check, oracle in (bi.keys(), KeysView(bi)), (bi.values(), ValuesView(bi)), (bi.items(), ItemsView(bi)):
# 0-arity methods: __len__, __iter__ # 0-arity methods: __len__, __iter__
# pylint: disable=unnecessary-dunder-call
assert check.__len__() == oracle.__len__() assert check.__len__() == oracle.__len__()
assert list(check.__iter__()) == list(oracle.__iter__()) assert list(check.__iter__()) == list(oracle.__iter__())
# 1-arity methods: __contains__ # 1-arity methods: __contains__

View File

@ -120,7 +120,7 @@ def test_abstract_bimap_init_fails():
"""Instantiating `AbstractBimap` should fail with expected TypeError.""" """Instantiating `AbstractBimap` should fail with expected TypeError."""
excmatch = r"Can't instantiate abstract class AbstractBimap with abstract methods .* inverse" excmatch = r"Can't instantiate abstract class AbstractBimap with abstract methods .* inverse"
with pytest.raises(TypeError, match=excmatch): with pytest.raises(TypeError, match=excmatch):
AbstractBimap() # pylint: disable=abstract-class-instantiated AbstractBimap()
def test_bimap_inverse_notimplemented(): def test_bimap_inverse_notimplemented():