Make ImportFrom level just a u32 (#11170)

This commit is contained in:
Carl Meyer 2024-04-26 20:38:35 -06:00 committed by GitHub
parent 5994414739
commit 845ba7cf5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 100 additions and 182 deletions

View file

@ -571,7 +571,7 @@ impl<'a> Generator<'a> {
}) => {
statement!({
self.p("from ");
if let Some(level) = level {
if *level > 0 {
for _ in 0..*level {
self.p(".");
}