Skip to content

Commit cc103ef

Browse files
committed
add override annotations to codec and plugin methods
1 parent faf4cde commit cc103ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/lib/test_payload_codec.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Any
3+
from typing import Any, override
44
from unittest.mock import AsyncMock, patch
55

66
import pytest
@@ -10,17 +10,21 @@
1010

1111

1212
class _NoopCodec(PayloadCodec):
13+
@override
1314
async def encode(self, payloads):
1415
return list(payloads)
1516

17+
@override
1618
async def decode(self, payloads):
1719
return list(payloads)
1820

1921

2022
class _FakeOpenAIPlugin(ClientPlugin):
23+
@override
2124
def configure_client(self, config):
2225
return config
2326

27+
@override
2428
async def connect_service_client(self, config, next):
2529
return await next(config)
2630

0 commit comments

Comments
 (0)