How to specify a type hint in Python to indicate that parameter can be any child class from a given parent class?

后端 未结 0 1785
别跟我提以往
别跟我提以往 2020-11-28 08:24
from __future__ import annotations
from dataclasses import dataclass
from decimal import Decimal
from typing import Any
import         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题