79806583

Date: 2025-11-01 14:30:02
Score: 1.5
Natty:
Report link

See your warning is just a IDE type warning

When you do inivitation_list =[ ..]

It work like list[str]

But when you do invitation_list[0] it think you are trying to do list[int][str] which is not allowed but the code is fine.

Your code is fine but if you want to remove such warnings then just do

Invitation_list : List[str] = [ "Allen", "Lucas",..]

By doing this your code should not show any warnings ☺️

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Niyam Prassanna Kunder