Skip to content

Commit 29413b8

Browse files
committed
chore: fix mypy errors
1 parent 2c5af63 commit 29413b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_httperror.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,23 +972,23 @@ def test_kw_only(self):
972972

973973

974974
class FakeYamlMediaHandler(BaseHandler):
975-
def serialize(self, media: object, content_type: str) -> bytes:
975+
def serialize(self, media, content_type):
976976
assert media == {'title': '410 Gone'}
977977
return b'title: 410 Gone!'
978978

979979

980980
class AsyncOnlyMediaHandler(BaseHandler):
981-
async def serialize_async(self, media: object, content_type: str) -> bytes:
981+
async def serialize_async(self, media, content_type):
982982
assert media == {'title': '410 Gone'}
983983
return b'this is async'
984984

985985

986986
class SyncInterfaceMediaHandler(AsyncOnlyMediaHandler):
987-
def serialize(self, media: object, content_type: str) -> bytes:
987+
def serialize(self, media, content_type):
988988
assert media == {'title': '410 Gone'}
989989
return b'this is sync instead'
990990

991-
_serialize_sync = serialize
991+
_serialize_sync = serialize # type: ignore[assignment]
992992

993993

994994
class TestDefaultSerializeError:

0 commit comments

Comments
 (0)