Skip to content

Commit 6b60286

Browse files
committed
fix bug in Timestamp.add
1 parent 3f16681 commit 6b60286

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
@@ -153,7 +153,7 @@ def add(
153153
nanoseconds: int = 0,
154154
disambiguate: Literal["compatible"] = "compatible",
155155
) -> Timestamp:
156-
return Timestamp(
156+
return self.__class__(
157157
self._obj.add(
158158
years=years,
159159
months=months,

0 commit comments

Comments
 (0)