From 72d649796741bfd1d054daaf2c2323db061f206d 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..a3637d3 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", "3.12", "pypy-3.10"] steps: - uses: "actions/checkout@v2" @@ -44,5 +44,6 @@ jobs: - name: "Run mypy" run: | set -xe + pyhton -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,