Skip to content

Commit

Permalink
Revert "Workaround pylint-dev/pylint#6818"
Browse files Browse the repository at this point in the history
This reverts commit 1f9d749.
  • Loading branch information
skirpichev committed Jun 17, 2022
1 parent 842672d commit 2002c7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions diofant/simplify/cse_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ def _match_common_args(Func, funcs):
func_args = [set(e.args) for e in funcs]
for i, _ in enumerate(func_args):
for j in range(i + 1, len(func_args)):
com_args = func_args[i].intersection(func_args[j]) # pylint: disable=unnecessary-list-index-lookup
com_args = func_args[i].intersection(func_args[j])
if len(com_args) > 1:
com_func = Func(*com_args)

# for all sets, replace the common symbols by the function
# over them, to allow recursive matches

diff_i = func_args[i].difference(com_args) # pylint: disable=unnecessary-list-index-lookup
diff_i = func_args[i].difference(com_args)
func_args[i] = diff_i | {com_func}
if diff_i:
opt_subs[funcs[i]] = Func(Func(*diff_i), com_func,
Expand Down
2 changes: 1 addition & 1 deletion diofant/simplify/hyperexpand.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ def do_shifts(fro, to, inc, dec):
sh = dec
ch = -1

while to[i] != fro[i]: # pylint: disable=unnecessary-list-index-lookup
while to[i] != fro[i]:
ops += [sh(fro, i)]
fro[i] += ch

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tests = ['pytest>=6', 'hypothesis', 'pytest-timeout', 'pexpect']
develop = ['diofant[tests]', 'flake8>=3.8', 'flake8-docstrings>=1.3',
'pep8-naming', 'flake8-comprehensions', 'flake8-isort>=4.1',
'flake8-rst', 'flake8-quotes>=3', 'flake8-sfs', 'pytest-xdist>=1.22',
'pytest-cov', 'pylint>=2.14.1', 'coverage[toml]>=6.1.2',
'pytest-cov', 'pylint>=2.14.2', 'coverage[toml]>=6.1.2',
'coverage_enable_subprocess', 'types-pkg_resources',
'mypy', 'build', 'flake8-pytest-style']
testing = ['diofant[develop]']
Expand Down

0 comments on commit 2002c7a

Please sign in to comment.