Skip to content

Commit 2a911cd

Browse files
Harry-LeesNusnus
authored andcommitted
Add spacing between @overload'ed functions to fix E302 errors
1 parent 905db0c commit 2a911cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

kombu/utils/encoding.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ def default_encoding(file: object = None) -> str:
4545

4646
@overload
4747
def str_to_bytes(s: str) -> bytes: ...
48+
49+
4850
@overload
4951
def str_to_bytes(s: T) -> T: ...
52+
53+
5054
def str_to_bytes(s: Any) -> Any:
5155
"""Convert str to bytes."""
5256
if isinstance(s, str):
@@ -56,8 +60,12 @@ def str_to_bytes(s: Any) -> Any:
5660

5761
@overload
5862
def bytes_to_str(s: bytes) -> str: ...
63+
64+
5965
@overload
6066
def bytes_to_str(s: T) -> T: ...
67+
68+
6169
def bytes_to_str(s: Any) -> Any:
6270
"""Convert bytes to str."""
6371
if isinstance(s, bytes):

0 commit comments

Comments
 (0)