Skip to content

Commit c6a92c4

Browse files
committed
upgrade mypy for its false problems
1 parent 93b811a commit c6a92c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: trailing-whitespace
1616
exclude: \.patch$
1717
- repo: https://github.com/pre-commit/mirrors-mypy
18-
rev: "v1.7.0"
18+
rev: "v2.3.0"
1919
hooks:
2020
- id: mypy
2121
additional_dependencies: [

gambaterm/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_ref(width: int, height: int, console: Console) -> tuple[int, int]:
3636
return refx, refy
3737

3838

39-
def write_frame(term: Terminal, frame_data: bytes) -> None:
39+
def write_frame(term: Terminal, frame_data: bytes | bytearray) -> None:
4040
# Fix code page issue on windows:
4141
# `sys.stdout.buffer.raw` is a `WindowsConsoleIO` that always support UTF-8
4242
# regardless of the configured codepage

0 commit comments

Comments
 (0)