File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -972,23 +972,23 @@ def test_kw_only(self):
972
972
973
973
974
974
class FakeYamlMediaHandler (BaseHandler ):
975
- def serialize (self , media : object , content_type : str ) -> bytes :
975
+ def serialize (self , media , content_type ) :
976
976
assert media == {'title' : '410 Gone' }
977
977
return b'title: 410 Gone!'
978
978
979
979
980
980
class AsyncOnlyMediaHandler (BaseHandler ):
981
- async def serialize_async (self , media : object , content_type : str ) -> bytes :
981
+ async def serialize_async (self , media , content_type ) :
982
982
assert media == {'title' : '410 Gone' }
983
983
return b'this is async'
984
984
985
985
986
986
class SyncInterfaceMediaHandler (AsyncOnlyMediaHandler ):
987
- def serialize (self , media : object , content_type : str ) -> bytes :
987
+ def serialize (self , media , content_type ) :
988
988
assert media == {'title' : '410 Gone' }
989
989
return b'this is sync instead'
990
990
991
- _serialize_sync = serialize
991
+ _serialize_sync = serialize # type: ignore[assignment]
992
992
993
993
994
994
class TestDefaultSerializeError :
You can’t perform that action at this time.
0 commit comments