Shortcode atts for WP Query args

It’s typically best practice to not extract your shortcode atts.

function dis_short_events($atts, $content = null){

ob_start();
$numero = shortcode_atts(array(
    'number' => '-1',
 ), $atts);

$args =array(
    'post_type'=>'eventi',
    'posts_per_page' => $numero['number']

);