Sep-04-2023, 03:03 PM
(Sep-04-2023, 02:53 PM)akbarza Wrote: hi snppsat
i replied to you, but my net disconnected and my reply was killed.
good news: i did as you said step by step and I reached to:
also i copied example1 in C:\code\new_env and then :
Output:(new_env) c:\code\new_env>mypy --version mypy 1.5.1 (compiled: yes)
C:\WINDOWS\system32>cd C:\code\new_env
thanks
Output:C:\code\new_env>mypy example1.py example1.py:5: ←[1m←[91merror:←[0m Argument 1 to ←[0m←[1m"slice"←[0m has incompatible type ←[0m←[1m"list[int]"←[0m; expe cted ←[0m←[1m"str"←[0m ←[0m←[93m[arg-type]←[0m ←[1m←[91mFound 1 error in 1 file (checked 1 source file)←[0m C:\code\new_env>
hi
what i did in cmd( :
c:\ pip install mypy --upgrade --no-cache-dir --force-reinstall
After running the above: I closed and opened cmd and :
Error:C:\WINDOWS\system32>cd /d D:\14020412_enteghal\akb_python\akb_py_projects
D:\14020412_enteghal\akb_python\akb_py_projects>mypy example1.py
D:\14020412_enteghal\akb_python\akb_py_projects\__init__.py: error: INTERNAL ERROR -- Please try using mypy master on Gi
tHub:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
If this issue continues with mypy master, please report a bug at https://github.com/python/mypy/issues
version: 1.5.1
D:\14020412_enteghal\akb_python\akb_py_projects\__init__.py: : note: please use --show-traceback to print a traceback wh
en reporting a bug
D:\14020412_enteghal\akb_python\akb_py_projects>
I have shame for more questions, but what's the problem? how can correct it?