getting mypy's to handle getters and setters in dataclasses

后端 未结 0 1546
半阙折子戏
半阙折子戏 2020-12-05 03:21

I have a dataclass like

@dataclass
class Passport:
    byr: int

    @property
    def byr(self) -> int:
        return self._byr

    @byr.setter
    def          


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