Skip to content

Commit 7ecf3fe

Browse files
Add comment to explain unusual import location
1 parent ff14948 commit 7ecf3fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

betterproto/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ def which_one_of(message: Message, group_name: str) -> Tuple[str, Any]:
941941
return (field_name, getattr(message, field_name))
942942

943943

944+
# Circular import workaround: google.protobuf depends on base classes defined above.
944945
from .lib.google.protobuf import Duration, Timestamp
945946

946947

0 commit comments

Comments
 (0)