Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
termios: Fix type of tcgetattr and tcsetattr attributes (#4662)
Returning a union from tcgetattr forces the caller to use isinstance or a type: ignore comment if they modify the returned list. Return List[Any] instead. The cc field has ints at cc[termios.VTIME] and cc[termios.VMIN] if lflag & termios.ICANON is zero. Change _Attr to allow this. Fixes #4661
- Loading branch information