Skip to content

Commit

Permalink
Remove runtime type check
Browse files Browse the repository at this point in the history
  • Loading branch information
arkuhn committed Feb 16, 2024
1 parent 819977b commit c14eb9f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/cpp/src/thrift/generate/t_py_generator.cc
Expand Up @@ -2590,11 +2590,6 @@ void t_py_generator::generate_serialize_field(ostream& out, t_field* tfield, str
* @param prefix String prefix to attach to all fields
*/
void t_py_generator::generate_serialize_struct(ostream& out, t_struct* tstruct, string prefix) {
if(gen_type_hints_) {
indent(out) << "if not type(" << prefix << ") is " << type_to_py_type(tstruct)
<< ": raise ValueError('" << prefix << " is not " << type_to_py_type(tstruct) << "')" << endl;
}

(void)tstruct;
indent(out) << prefix << ".write(oprot)" << endl;
}
Expand Down

0 comments on commit c14eb9f

Please sign in to comment.