Skip to content

Commit b0e5c78

Browse files
committed
remove type hints
1 parent 59b2f0f commit b0e5c78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python3/cobs/cobs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
from .._version import *
2929

3030

31-
def encoding_overhead(source_len: int) -> int:
31+
def encoding_overhead(source_len):
3232
"""Calculates the maximum overhead when encoding a message with the given length.
3333
The overhead is a maximum of [n/254] bytes (one in 254 bytes) rounded up."""
3434
return (source_len + 254 - 1) // 254
3535

3636

37-
def max_encoded_length(source_len: int) -> int:
37+
def max_encoded_length(source_len):
3838
"""Calculates how maximum possible size of an encoded message given the length of the
3939
source message."""
4040
return source_len + encoding_overhead(source_len)

0 commit comments

Comments
 (0)