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

Commit a55bf27

Browse files
committed
fix conditional statement
1 parent a0869e5 commit a55bf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gapic/schema/imp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __str__(self) -> str:
3030
# We do this for protobuf generated files (_pb2) and api_core
3131
# internals where type information might be missing or incomplete.
3232
needs_type_ignore = self.module.endswith("_pb2") or "api_core" in self.package
33-
if not needs_type_ignore:
33+
if needs_type_ignore:
3434
# Use 'import absolute.path as module' syntax to prevent Ruff/isort
3535
# from combining this with other imports. This ensures the
3636
# '# type: ignore' comment remains effective for this specific import.

0 commit comments

Comments
 (0)