Avoid generating empty statement bodies (#700)

This commit is contained in:
Charlie Marsh 2022-11-12 11:39:09 -05:00 committed by GitHub
parent 6bcc11a90f
commit bbc38fea73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 94 additions and 55 deletions

View file

@ -4,6 +4,7 @@ use crate::check_ast::Checker;
use crate::pyupgrade;
use crate::pyupgrade::checks;
/// U004
pub fn useless_object_inheritance(
checker: &mut Checker,
stmt: &Stmt,