danielgtaylor / danielgtaylor/python-betterproto

Service response values are not unwrapped

Đang mở
#64 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@boukeversteegh đang làm issue này rồi.

Từ ngày 25/5/2020.

bug has test low priority medium
Ngôn ngữ chính
Python
Star
1.8k
Fork
234
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

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 {

}

response = TestStub(channel).get_double()

assert type(response) == float # fails!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.