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
Getting the following error right after install when I try to use any command of slither:
Traceback (most recent call last):
File "/usr/local/bin/slither", line 5, in <module>
from slither.__main__ import main
File "/usr/local/lib/python3.11/site-packages/slither/__main__.py", line 24, in <module>
from slither.printers import all_printers
File "/usr/local/lib/python3.11/site-packages/slither/printers/all_printers.py", line 4, in <module>
from .summary.loc import LocPrinter
File "/usr/local/lib/python3.11/site-packages/slither/printers/summary/loc.py", line 14, in <module>
from slither.utils.loc import compute_loc_metrics
File "/usr/local/lib/python3.11/site-packages/slither/utils/loc.py", line 20, in <module>
@dataclass
^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1220, in dataclass
return wrap(cls)
^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 1210, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'slither.utils.loc.LoCInfo'> for field src is not allowed: use default_factory
Describe the issue:
Getting the following error right after install when I try to use any command of slither:
Code example to reproduce the issue:
Version:
I get the error when I run that
Relevant log output:
No response
The text was updated successfully, but these errors were encountered: