Cleanup type checking
This commit is contained in:
9
sanic/models/protocol_types.py
Normal file
9
sanic/models/protocol_types.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from typing import Protocol, Union
|
||||||
|
|
||||||
|
|
||||||
|
class TransportProtocol(Protocol):
|
||||||
|
def get_protocol(self):
|
||||||
|
...
|
||||||
|
|
||||||
|
def get_extra_info(self, info: str) -> Union[str, bool, None]:
|
||||||
|
...
|
||||||
Reference in New Issue
Block a user