skip to Main Content

Redis – Annotations and superclasses

This is a question about best practice - consider I have the following base class module, base.py: from __future__ import annotations from typing import TYPE_CHECKING if type_checking: from redis import Redis class Base: redis: Redis def __init__(self, redis): self.redis =…

VIEW QUESTION
Back To Top
Search