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,