mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Make ImportFrom level just a u32 (#11170)
This commit is contained in:
parent
5994414739
commit
845ba7cf5f
34 changed files with 100 additions and 182 deletions
|
@ -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(".");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue