Skip to content

Commit e66010b

Browse files
committed
Update comments
1 parent f5d00d3 commit e66010b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gazelle/pythonconfig/pythonconfig.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ const (
102102
// python_generate_proto targets.
103103
GenerateProto = "python_generate_proto"
104104
// PythonResolveSiblingImports represents the directive that controls whether
105-
// sibling imports are resolved to absolute imports. When enabled, imports like
106-
// "import a" from a sibling module are converted to absolute imports. When
107-
// disabled, they remain as relative imports to the current package.
105+
// absolute imports can be solved to sibling modules. When enabled, imports
106+
// like "import a" can be resolved to sibling modules. When disabled, they
107+
// can only be resolved as an absolute import.
108108
PythonResolveSiblingImports = "python_resolve_sibling_imports"
109109
)
110110

@@ -579,12 +579,12 @@ func (c *Config) GenerateProto() bool {
579579
return c.generateProto
580580
}
581581

582-
// SetResolveSiblingImports sets whether sibling imports are resolved to absolute imports.
582+
// SetResolveSiblingImports sets whether absolute imports can be resolved to sibling modules.
583583
func (c *Config) SetResolveSiblingImports(resolveSiblingImports bool) {
584584
c.resolveSiblingImports = resolveSiblingImports
585585
}
586586

587-
// ResolveSiblingImports returns whether sibling imports are resolved to absolute imports.
587+
// ResolveSiblingImports returns whether absolute imports can be resolved to sibling modules.
588588
func (c *Config) ResolveSiblingImports() bool {
589589
return c.resolveSiblingImports
590590
}

0 commit comments

Comments
 (0)