Skip to content

Commit ace1b14

Browse files
committed
chore(mypy): Fix console_encoding
src/libvcs/_internal/run.py:23: error: Item "None" of "TextIOWrapper | None" has no attribute "encoding" [union-attr]
1 parent 5c67a29 commit ace1b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libvcs/_internal/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
logger = logging.getLogger(__name__)
2222

23-
console_encoding = sys.__stdout__.encoding
23+
console_encoding = sys.stdout.encoding
2424

2525

2626
def console_to_str(s: bytes) -> str:

0 commit comments

Comments
 (0)