Cleanup type checking
This commit is contained in:
parent
d402d0362e
commit
bad9fd0258
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]:
|
||||||
|
...
|
Loading…
Reference in New Issue
Block a user