Open rbtz-openai opened 2 months ago
cc: @nipunn1313, long time no see btw! =))
Good to hear from you! It's probably because it's a reserved keyword. We should be able to work around it. We can take a look at what the underlying constructor chooses to do in the google generated code and match typing to that.
I'm using
mypy-protobuf
to generate types for the envoy protos and getting the following error:This is due to the original protobuf having an oneof field with a
self
as a value:A snippet from the generated pyi:
I'm using the mypy-protobuf from the buf.build sdk: