danielgtaylor / danielgtaylor/python-betterproto

Service response values are not unwrapped

オープン
#64 コメント 0 件 リアクション 0 件 担当者 1 名 @boukeversteegh が担当を希望しています GitHub で見る
bug has test low priority medium
主要言語
Python
スター
1.8k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

説明

As betterproto is aiming to support automatic (un)wrapping of well known types (google wrapper values), the service responses should also return the underlying values, instead of the wrapper objects.

```protobuf
syntax = "proto3";

import "google/protobuf/wrappers.proto";

// Tests that wrapped values can be used directly as return values

service Test {
rpc GetDouble (Input) returns (google.protobuf.DoubleValue);
}

message Input {

}
```

```python

response = TestStub(channel).get_double()

assert type(response) == float # fails!
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。