diff --git a/gazelle/python/generate.go b/gazelle/python/generate.go index c563b47bf3..b1ac6689e4 100644 --- a/gazelle/python/generate.go +++ b/gazelle/python/generate.go @@ -309,7 +309,7 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes build() if pyLibrary.IsEmpty(py.Kinds()[pyLibrary.Kind()]) { - result.Empty = append(result.Gen, pyLibrary) + result.Empty = append(result.Empty, pyLibrary) } else { result.Gen = append(result.Gen, pyLibrary) result.Imports = append(result.Imports, pyLibrary.PrivateAttr(config.GazelleImportsKey))