mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-19 23:21:46 +03:00
Update conditions.py (#16082)
This commit is contained in:
parent
441d706681
commit
a3236b9df9
@ -14,7 +14,7 @@ from chia.util.hash import std_hash
|
||||
from chia.util.ints import uint32, uint64
|
||||
from chia.util.streamable import Streamable, streamable
|
||||
|
||||
_T_ConditionSubclass = TypeVar("_T_ConditionSubclass")
|
||||
_T_Condition = TypeVar("_T_Condition", bound="Condition")
|
||||
|
||||
|
||||
class Condition(Streamable, ABC):
|
||||
@ -24,7 +24,7 @@ class Condition(Streamable, ABC):
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
def from_program(cls: Type[_T_ConditionSubclass], program: Program) -> _T_ConditionSubclass:
|
||||
def from_program(cls: Type[_T_Condition], program: Program) -> _T_Condition:
|
||||
...
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user