Show More
@@ -5,6 +5,7 | |||||
5 |
|
5 | |||
6 | from __future__ import annotations |
|
6 | from __future__ import annotations | |
7 |
|
7 | |||
|
8 | import abc | |||
8 | import typing |
|
9 | import typing | |
9 |
|
10 | |||
10 | from typing import ( |
|
11 | from typing import ( | |
@@ -193,11 +194,13 class baseprotocolhandler(Protocol): | |||||
193 | the request, handle response types, etc. |
|
194 | the request, handle response types, etc. | |
194 | """ |
|
195 | """ | |
195 |
|
196 | |||
196 | name: bytes |
|
197 | @property | |
197 | """The name of the protocol implementation. |
|
198 | @abc.abstractmethod | |
|
199 | def name(self) -> bytes: | |||
|
200 | """The name of the protocol implementation. | |||
198 |
|
201 | |||
199 | Used for uniquely identifying the transport type. |
|
202 | Used for uniquely identifying the transport type. | |
200 | """ |
|
203 | """ | |
201 |
|
204 | |||
202 | def getargs(self, args): |
|
205 | def getargs(self, args): | |
203 | """return the value for arguments in <args> |
|
206 | """return the value for arguments in <args> |
General Comments 0
You need to be logged in to leave comments.
Login now