You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest release of flake8 leads to this error on the SymPy codebase:
$ flake8 sympy/parsing/latex/_parse_latex_antlr.py
sympy/parsing/latex/_parse_latex_antlr.py:31:5: F811 redefinition of unused 'MathErrorListener' from line 13
The class is being defined conditionally based on whether modules are available to import and is set to None by default otherwise. There is no reason that flake8 should complain about this.
Something has changed in the latest release to cause this because previous versions of flake8 did not complain e.g. with flake8==6.0.0 the same code passes fine.
The text was updated successfully, but these errors were encountered:
how did you install flake8?
$ pip install flake8
unmodified output of
flake8 --bug-report
describe the problem
The latest release of flake8 leads to this error on the SymPy codebase:
The code complained about can be seen here:
https://github.com/sympy/sympy/blob/f007dac3f2a1f700175651b942aaeb7bb26fc99c/sympy/parsing/latex/_parse_latex_antlr.py#L13-L31
The class is being defined conditionally based on whether modules are available to import and is set to None by default otherwise. There is no reason that flake8 should complain about this.
Something has changed in the latest release to cause this because previous versions of flake8 did not complain e.g. with
flake8==6.0.0
the same code passes fine.The text was updated successfully, but these errors were encountered: