- fix few typos - remove unused imports - fix minor code-quality issues - replace `grpclib._protocols` with `grpclib._typing` - fix boolean and None assertions in test cases
10 lines
280 B
Python
10 lines
280 B
Python
from typing import TYPE_CHECKING, TypeVar
|
|
|
|
if TYPE_CHECKING:
|
|
from . import Message
|
|
from grpclib._typing import IProtoMessage
|
|
|
|
# Bound type variable to allow methods to return `self` of subclasses
|
|
T = TypeVar("T", bound="Message")
|
|
ST = TypeVar("ST", bound="IProtoMessage")
|