Skip to content

CI: Fix typing after redis-py v5.0.0 release #227

Description

@psrok1

redis-py v5.0.0 adds support for asyncio. It affected return types from command methods which are now Union[Awaitable[T], T]. As the type doesn't really have sense (Awaitable types are returned only if we use Redis class from redis.asyncio package), it's difficult to pass returned values to other typed methods.

I have added temporary workaround for that by dropping the version to <5.0.0 for linting step (#226) but we need to fix it somehow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions