Add radio button in place of checkbox at selection in post

/* adding a code to convert selection of taxonomy checkbox to radio button  */
Add this function to function.php file.

function team_type_cateogry_box($post){
$terms = get_terms( 'team-type', array( 'hide_empty' => false ) );
$post  = get_post();

if($post->post_type =="team"){
$rating = wp_get_object_terms( $post->ID, 'team-type', array( 'orderby' => 'name', 'order' => 'ASC' ) );

$name  = '';
$selected_category=array();
if ( ! is_wp_error( $rating ) ) {
foreach ( $rating as $rating_data ) {
array_push($selected_category,$rating_data->name);
}
}
foreach ( $terms as $term ) {

$title_Val=$term->name;
?>
<label title='<?php esc_attr_e( $term->name ); ?>'>
<input type="radio" name="tax_input[team-type]" value="<?php esc_attr_e($term->name ); ?>" <?php if(in_array($term->name, $selected_category )){ echo 'checked="checked"'; } ?>>
<span><?php echo $title_Val;?></span>
</label><br>
<?php }
}
}

add below code when you create custom taxonomy.

$args = array(
'labels'                     => $labels,
'hierarchical'               => false,
'public'                     => false,
'show_ui'                    => true,//true
'show_admin_column'          => true,
'show_in_nav_menus'          => true,
'show_tagcloud'              => false,
'meta_box_cb'        => 'team_type_cateogry_box'

);
register_taxonomy( 'team-type', array( 'team' ), $args );