32jojo32

Avatar
  • Total activity 2
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 1
  • 32jojo32 created a post,
    Answered

    Wrong type warning when working with dictionary

    Consider this very simple python example: def b(): """ :rtype: dict[str, int] """ return {"b": 1}a = b()a["test"] = "test"     The last line gives me this error Expected type 'int' (mat...