这个问题其实和Pylance也有关系。但是目前最好的解决方法是更改pwntools源码中的这一段
#......
def send_raw(self, data):
"""send_raw(data)
Should not be called directly. Sends data to the tube.
Should return ``exceptions.EOFError``, if it is unable to send any
more, because of a close tube.
"""
raise EOFError('Not implemented')
#.......
把raise EOFError('Not implemented')
更换成Rasie NotImplementedError
就可以