mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Allow inheriting FrozenOrThawed with custom init (#105624)
This commit is contained in:
@@ -117,4 +117,5 @@ class FrozenOrThawed(type):
|
||||
return object.__new__(cls)
|
||||
return cls._dataclass(*_args, **kwargs)
|
||||
|
||||
cls.__init__ = cls._dataclass.__init__ # type: ignore[misc]
|
||||
cls.__new__ = __new__ # type: ignore[method-assign]
|
||||
|
||||
Reference in New Issue
Block a user