VSCode MyPy error: "ioctl" has incompatible type "my_struct"; expected "Union[int, str]" – Debian
I have the following python snippet that is generating MyPy "problems" (in vscode). my_struct = MyStruct() #! set mutable flag to true to place data in our object. fcntl.ioctl( dev_hand.fileno(), my_ioctl_id, my_struct, True ) The error is: Argument 3 to…