Skip to content

Commit

Permalink
chore: fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Sep 29, 2024
1 parent 2c5af63 commit 29413b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_httperror.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,23 +972,23 @@ def test_kw_only(self):


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


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


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

_serialize_sync = serialize
_serialize_sync = serialize # type: ignore[assignment]


class TestDefaultSerializeError:
Expand Down

0 comments on commit 29413b8

Please sign in to comment.