This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
Using type() to compare types - cannot use class that has str
as base class
#856
Labels
easy
Good first PR
enhancement
help wanted
resolved-via-latest
This indicates this issue is either resolved or invalid as of the latest version.
Projects
It's not possible to use
StrEnum(str, Enum)
object as a key because of following code: https://github.com/aio-libs/aioredis/blob/231d0418988fd870c3d26d60eec65e2fc13d0144/aioredis/util.py#L35Unfortunately this code requires argument to by strictly
str
type instead of being a subclass ofstr
.What I'd like to achieve is following:
The text was updated successfully, but these errors were encountered: