add typing to security

This commit is contained in:
Chih Cheng Liang
2019-08-01 19:12:11 +08:00
parent 030abcc959
commit a86f010c95
7 changed files with 102 additions and 26 deletions

View File

@ -1,4 +1,4 @@
from abc import ABC
from abc import ABC, abstractmethod
# pylint: disable=too-few-public-methods
@ -7,3 +7,11 @@ class IRawConnection(ABC):
"""
A Raw Connection provides a Reader and a Writer
"""
@abstractmethod
async def write(self, data: bytes) -> None:
pass
@abstractmethod
async def read(self) -> bytes:
pass