我遇到了带有这样签名的函数:
def get_quantile(numbers: List[float], q: float | int ) -> float | int | None :
这是什么意思?
这是我的 python 3.8 上的语法错误。我需要从中导入一些东西future才能使其工作吗?
future
python type-hinting python-3.x type-annotation
python ×1
python-3.x ×1
type-annotation ×1
type-hinting ×1