mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 15:44:22 -05:00
Make ImportFrom level just a u32 (#11170)
This commit is contained in:
@@ -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(".");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user