Adapt to mypy 1.11

This commit is contained in:
Bruno Oliveira 2024-07-23 10:05:14 -03:00 committed by GitHub
parent 8230e4f1e1
commit 569cb964d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ def init_worker_session(
import sys import sys
outchannel = channel.gateway.newchannel() outchannel = channel.gateway.newchannel()
sys.stdout = sys.stderr = outchannel.makefile("w") # type: ignore[assignment] sys.stdout = sys.stderr = outchannel.makefile("w")
channel.send(outchannel) channel.send(outchannel)
# prune sys.path to not contain relative paths # prune sys.path to not contain relative paths
newpaths = [] newpaths = []