Is there a way to declare a ClassVar in a dataclass without importing typing?

后端 未结 0 810
误落风尘
误落风尘 2020-12-03 12:21

I have a small and simple class like so:

from __future__ import annotations

from dataclasses import dataclass

@datacl         


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