You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if I like that this is the case, or at least I ran into an issue where I expected that putting a timedelta object in the deployment params of a contract that expected a timedelta arg ended up making a quite large timedelta unexpectedly
Should this converter instead convert timedelta as td.total_seconds(), and then suggest in the docs to do datetime + timedelta for those scenarios where you want it to produce a specific timestamp and not a delta? e.g.
Not sure if I like that this is the case, or at least I ran into an issue where I expected that putting a
timedelta
object in the deployment params of a contract that expected a timedelta arg ended up making a quite large timedelta unexpectedlyape/src/ape/managers/converters.py
Line 229 in 13ea952
Should this converter instead convert
timedelta
astd.total_seconds()
, and then suggest in the docs to dodatetime + timedelta
for those scenarios where you want it to produce a specific timestamp and not a delta? e.g.The text was updated successfully, but these errors were encountered: