Sep-05-2023, 11:56 AM
hi snippsat
I uninstalled Python and installed it again and it works. but i have some questions.
my question:
First:
in your last reply, you had written this term:
for this --show-traceback, how can i know that a command( e.g. mypy) has such tails like this?(I do not know what is called this, so I named it tail.) and what tails does it have? what thing do i search for it in google?
Second: I copied example1.py file on my desktop and in cmd after changing path
and writing
C:\WINDOWS\system32>cd/d C:\Users\akbar\Desktop\1
C:\Users\akbar\Desktop\1>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
I think mypy acted correctly, but I do not understand these expressions such as 0m, 1m, 91m and ... .
can explain to me or introduce to me a reference?
thanks
I uninstalled Python and installed it again and it works. but i have some questions.
my question:
First:
in your last reply, you had written this term:
mypy example1.py --show-traceback.
for this --show-traceback, how can i know that a command( e.g. mypy) has such tails like this?(I do not know what is called this, so I named it tail.) and what tails does it have? what thing do i search for it in google?
Second: I copied example1.py file on my desktop and in cmd after changing path
and writing
mypy example1.py, i have:
C:\WINDOWS\system32>cd/d C:\Users\akbar\Desktop\1
C:\Users\akbar\Desktop\1>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
I think mypy acted correctly, but I do not understand these expressions such as 0m, 1m, 91m and ... .
can explain to me or introduce to me a reference?
thanks