Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 6ec5213

Browse files
committed
minimize diff
1 parent a882890 commit 6ec5213

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

gapic/schema/imp.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ def __str__(self) -> str:
4040
return f"import {full_module} as {alias} # type: ignore"
4141

4242
# Standard import generation
43-
import_clause = f"import {self.module}"
43+
answer = f"import {self.module}"
4444
if self.package:
45-
import_clause = f"from {'.'.join(self.package)} {import_clause}"
46-
45+
answer = f"from {'.'.join(self.package)} {answer}"
4746
if self.alias:
48-
import_clause += f" as {self.alias}"
49-
50-
return import_clause
47+
answer += f" as {self.alias}"
48+
return answer

0 commit comments

Comments
 (0)