PyLance reports a type error here:
|
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) |
And here:
|
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) |
The type error is:
Cannot access attribute "detach" for class "TextIO"
Attribute "detach" is unknownPylancereportAttributeAccessIssue