Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Gonzalez-Martin committed Aug 31, 2021
1 parent 9904fd6 commit c79626e
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 9 deletions.
8 changes: 0 additions & 8 deletions mlserver/codecs/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,3 @@ def decode(cls, request_input: RequestInput) -> List[str]:
class StringRequestCodec(FirstInputRequestCodec):
InputCodec = StringCodec
ContentType = StringCodec.ContentType

@classmethod
def decode(cls, request_input: RequestInput) -> List[str]:
packed = request_input.data.__root__
shape = request_input.shape

unpacked = map(_decode_str, unpack(packed, shape))
return list(unpacked)
Loading

0 comments on commit c79626e

Please sign in to comment.