Update conditions.py (#16082)

This commit is contained in:
Kyle Altendorf 2023-08-18 15:03:05 -04:00 committed by GitHub
parent 441d706681
commit a3236b9df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:
...