1
0
Fork 0

Adding upstream version 1.2+20240521.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 14:24:15 +01:00
parent 6b2864e4b9
commit 8512f66c5a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
229 changed files with 19561 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{
"times": ["1972-01-01T10:00:20.021Z", "1972-01-01T10:00:20.021Z"],
"durations": ["1.200s", "1.200s"]
}

View file

@ -0,0 +1,12 @@
syntax = "proto3";
package repeated_duration_timestamp;
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
message Test {
repeated google.protobuf.Timestamp times = 1;
repeated google.protobuf.Duration durations = 2;
}

View file

@ -0,0 +1,12 @@
from datetime import (
datetime,
timedelta,
)
from tests.output_aristaproto.repeated_duration_timestamp import Test
def test_roundtrip():
message = Test()
message.times = [datetime.now(), datetime.now()]
message.durations = [timedelta(), timedelta()]