I'm using Python 3.5.3 with mypy 0.521. The program in question works fine. When checking the following program mypy shows the following messages (which in my opinion are incorrect): ...
tk.Label(root, text="Gender:").pack() gender_var = tk.StringVar(value="") tk.Radiobutton(root, text="Male", variable=gender_var, value="Male").pack() tk.Radiobutton ...