Closed powellnorma closed 1 month ago
Example code:
import tty mode = tty.tcgetattr(1)
I believe this stems from tty.py using: from termios import * - Pyright warns about this with Wildcard import from a library not allowed.
from termios import *
Wildcard import from a library not allowed
Indeed, the stubs don't replicate the star import from the runtime. This is deliberate. tty.tcgetattr is not documented, you should use the documented termios.tcgetattr instead of the re-export from tty.
tty.tcgetattr
termios.tcgetattr
Example code:
I believe this stems from tty.py using:
from termios import *
- Pyright warns about this withWildcard import from a library not allowed
.