Skip to content

Commit ccf0f5b

Browse files
committed
chore(mypy): Fix console_encoding
src/libtmux/_compat.py:7: error: Item "None" of "TextIOWrapper | None" has no attribute "encoding" [union-attr]
1 parent 218bb92 commit ccf0f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtmux/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import types
55
import typing as t
66

7-
console_encoding = sys.__stdout__.encoding
7+
console_encoding = sys.stdout.encoding
88

99

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

0 commit comments

Comments
 (0)