cunla / fakeredis-py

Implementation of Redis in python without having a Redis server running. Fully compatible with using redis-py.
https://fakeredis.moransoftware.ca/
BSD 3-Clause "New" or "Revised" License
299 stars 49 forks source link

The newest release 2.26.0 does not work with Python 3.7 #341

Closed not522 closed 1 month ago

not522 commented 1 month ago

Describe the bug Thanks for your great project! I found the newest release 2.26.0 does not work with Python 3.7.

To Reproduce

>>> import fakeredis
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/not/.pyenv/versions/fakeredis/lib/python3.7/site-packages/fakeredis/__init__.py", line 3, in <module>
    from ._connection import (
  File "/Users/not/.pyenv/versions/fakeredis/lib/python3.7/site-packages/fakeredis/_connection.py", line 8, in <module>
    from ._server import FakeBaseConnectionMixin, FakeServer, VersionType
  File "/Users/not/.pyenv/versions/fakeredis/lib/python3.7/site-packages/fakeredis/_server.py", line 6, in <module>
    from typing import Dict, Tuple, Any, List, Optional, Union, Literal
ImportError: cannot import name 'Literal' from 'typing' (/Users/not/.pyenv/versions/3.7.8/lib/python3.7/typing.py)

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context

kloczek commented 1 month ago

Python 3.7 is already EOSed https://endoflife.date/python.

cunla commented 1 month ago

While it is not officially supported, I can publish a fix for this.

cunla commented 1 month ago

Will publish a fix soon.

szokeasaurusrex commented 4 weeks ago

@cunla any plans to release this fix soon?

cunla commented 4 weeks ago

Released.