From 259ee027b4d6061c9a241c6971d1eaf0fd2376da Mon Sep 17 00:00:00 2001 From: Sergei Lebedev Date: Sun, 12 Nov 2023 10:02:40 +0000 Subject: [PATCH] Fixed CI build --- .github/workflows/ci.yml | 3 ++- pyte/screens.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fc863c..8f4df8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.7"] + python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.10"] steps: - uses: "actions/checkout@v2" @@ -44,5 +44,6 @@ jobs: - name: "Run mypy" run: | set -xe + python -m pip install mypy==1.7.0 python -m mypy --strict pyte shell: bash diff --git a/pyte/screens.py b/pyte/screens.py index 25d6a36..ebbac7c 100644 --- a/pyte/screens.py +++ b/pyte/screens.py @@ -35,9 +35,9 @@ import warnings from collections import deque, defaultdict from functools import lru_cache -from typing import Any, Callable, DefaultDict, Dict, Generator, List, NamedTuple, Optional, Set, Sequence, TextIO, TypeVar +from typing import Any, Callable, Dict, Generator, List, NamedTuple, Optional, Set, Sequence, TextIO, TypeVar -from wcwidth import wcwidth as _wcwidth # type: ignore[import] +from wcwidth import wcwidth as _wcwidth # type: ignore[import-untyped] from . import ( charsets as cs,