Combine circular imports
This commit is contained in:
parent
919b0a6a7d
commit
d31f90be6b
@ -942,7 +942,19 @@ def which_one_of(message: Message, group_name: str) -> Tuple[str, Any]:
|
|||||||
|
|
||||||
|
|
||||||
# Circular import workaround: google.protobuf depends on base classes defined above.
|
# Circular import workaround: google.protobuf depends on base classes defined above.
|
||||||
from .lib.google.protobuf import Duration, Timestamp
|
from .lib.google.protobuf import (
|
||||||
|
Duration,
|
||||||
|
Timestamp,
|
||||||
|
BoolValue,
|
||||||
|
BytesValue,
|
||||||
|
DoubleValue,
|
||||||
|
FloatValue,
|
||||||
|
Int32Value,
|
||||||
|
Int64Value,
|
||||||
|
StringValue,
|
||||||
|
UInt32Value,
|
||||||
|
UInt64Value,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class _Duration(Duration):
|
class _Duration(Duration):
|
||||||
@ -1092,16 +1104,3 @@ class ServiceStub(ABC):
|
|||||||
await stream.send_message(request, end=True)
|
await stream.send_message(request, end=True)
|
||||||
async for message in stream:
|
async for message in stream:
|
||||||
yield message
|
yield message
|
||||||
|
|
||||||
|
|
||||||
from .lib.google.protobuf import (
|
|
||||||
BoolValue,
|
|
||||||
BytesValue,
|
|
||||||
DoubleValue,
|
|
||||||
FloatValue,
|
|
||||||
Int32Value,
|
|
||||||
Int64Value,
|
|
||||||
StringValue,
|
|
||||||
UInt32Value,
|
|
||||||
UInt64Value,
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user