Skip to content

Commit d762fb6

Browse files
committed
fix .subtract too
1 parent 6b60286 commit d762fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/timestamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def subtract(
183183
nanoseconds: int = 0,
184184
disambiguate: Literal["compatible"] = "compatible",
185185
) -> Timestamp:
186-
return Timestamp(
186+
return self.__class__(
187187
self._obj.subtract(
188188
years=years,
189189
months=months,

0 commit comments

Comments
 (0)