From 76740b47ad0c2f0714d5fe65d26d18c89cf5dd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Mon, 15 Apr 2024 08:33:38 +0200 Subject: [PATCH] add unit tests for PyPy --- .github/workflows/ci.yml | 2 +- satella/coding/transforms/misc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f496387..eb54a8be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: environment: Env1 strategy: matrix: - python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ] + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9" ] steps: - uses: actions/checkout@main - uses: actions/setup-python@main diff --git a/satella/coding/transforms/misc.py b/satella/coding/transforms/misc.py index a64282be..b29213f0 100644 --- a/satella/coding/transforms/misc.py +++ b/satella/coding/transforms/misc.py @@ -3,7 +3,7 @@ import typing as tp from satella.coding.typing import V -def list_values_to_indices(lst: tp.List[V]) -> dict[V, int]: +def list_values_to_indices(lst: tp.List[V]) -> tp.Dict[V, int]: """ Transform a list of entries into a dict mapping where given entry can be found. -- GitLab