The types CastStatus, MediaImage, LaunchFailure, MultizoneInfo, MultizoneStatus, DeviceStatus, CastInfo, ServiceInfo, NetworkAddress, ConnectionStatus are now dataclasses.dataclass.
Change
Replace named tuples with frozen dataclasses
Rationale:
Named tuples can't be type annotated, this change is needed to add type annotations to pychromecast. Instead of changing to typing.NamedTuple, change to dataclasses.dataclass which is much more versatile.
Breaking change
The types
CastStatus
,MediaImage
,LaunchFailure
,MultizoneInfo
,MultizoneStatus
,DeviceStatus
,CastInfo
,ServiceInfo
,NetworkAddress
,ConnectionStatus
are nowdataclasses.dataclass
.Change
Replace named tuples with frozen dataclasses
Rationale: Named tuples can't be type annotated, this change is needed to add type annotations to
pychromecast
. Instead of changing totyping.NamedTuple
, change todataclasses.dataclass
which is much more versatile.