Summary
Any generated ServiceStub with an rcp that conflicts with a mutable parameter that is set in the parent class will get overwriten during parent class init.
Reproduction Steps
Generate a ServiceStub with an rcp named the same as a parameter that is set during the ServiceStub parent class initialization.
Expected Results
method is not overwritten during init
Actual Results
Method is overwritten by metadata. Attempting to call method results in TypeError: 'dict' object is not callable
System Information
betterproton2 0.10.0
python 3.13.7
Checklist
Summary
Any generated
ServiceStubwith an rcp that conflicts with a mutable parameter that is set in the parent class will get overwriten during parent class init.Reproduction Steps
Generate a
ServiceStubwith an rcp named the same as a parameter that is set during theServiceStubparent class initialization.Expected Results
method is not overwritten during init
Actual Results
Method is overwritten by metadata. Attempting to call method results in
TypeError: 'dict' object is not callableSystem Information
betterproton2 0.10.0
python 3.13.7
Checklist
pip install -U --pre betterproto, if possible.