From 6cea8ecf5e5de7a15d2d2f8a3465149e06feb78d 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..ecec97d 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-not-found] from . import ( charsets as cs,