Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem in using mypy
#13
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:
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
Reply


Messages In This Thread
problem in using mypy - by akbarza - Sep-03-2023, 02:56 PM
RE: problem in using mypy - by deanhystad - Sep-03-2023, 03:25 PM
RE: problem in using mypy - by akbarza - Sep-04-2023, 04:46 AM
RE: problem in using mypy - by snippsat - Sep-04-2023, 11:47 AM
RE: problem in using mypy - by akbarza - Sep-04-2023, 12:20 PM
RE: problem in using mypy - by akbarza - Sep-04-2023, 12:11 PM
RE: problem in using mypy - by akbarza - Sep-04-2023, 12:31 PM
RE: problem in using mypy - by snippsat - Sep-04-2023, 12:55 PM
RE: problem in using mypy - by akbarza - Sep-04-2023, 02:53 PM
RE: problem in using mypy - by akbarza - Sep-04-2023, 03:03 PM
RE: problem in using mypy - by akbarza - Sep-04-2023, 02:53 PM
RE: problem in using mypy - by snippsat - Sep-04-2023, 08:07 PM
RE: problem in using mypy - by akbarza - Sep-05-2023, 11:56 AM
RE: problem in using mypy - by deanhystad - Sep-05-2023, 12:40 PM
RE: problem in using mypy - by snippsat - Sep-05-2023, 12:59 PM
RE: problem in using mypy - by akbarza - Sep-06-2023, 12:25 PM
RE: problem in using mypy - by akbarza - Sep-06-2023, 12:56 PM
RE: problem in using mypy - by snippsat - Sep-06-2023, 01:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  mypy, type aliases and type variables tomciodev 1 763 Oct-18-2023, 10:08 AM
Last Post: Larz60+
Question mypy unable to analyse types of tuple elements in a list comprehension tomciodev 1 527 Oct-17-2023, 09:46 AM
Last Post: tomciodev
  Mypy typing error WannaBePythonDev 2 1,993 Sep-05-2021, 10:18 AM
Last Post: WannaBePythonDev

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020