File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 .
583583func (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 .
588588func (c * Config ) ResolveSiblingImports () bool {
589589 return c .resolveSiblingImports
590590}
You can’t perform that action at this time.
0 commit comments