Skip to content

Commit c5fac0a

Browse files
committed
A few more type hints
1 parent 35e4343 commit c5fac0a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

barcode/ean.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,15 @@ def __init__(self, ean, writer=None, no_checksum=False, guardbar=False) -> None:
7272
def __str__(self) -> str:
7373
return self.ean
7474

75-
def get_fullcode(self):
75+
def get_fullcode(self) -> str:
7676
if self.guardbar:
7777
return self.ean[0] + " " + self.ean[1:7] + " " + self.ean[7:] + " >"
7878
return self.ean
7979

80-
def calculate_checksum(self):
80+
def calculate_checksum(self) -> int:
8181
"""Calculates the checksum for EAN13-Code.
8282
83-
:returns: The checksum for `self.ean`.
84-
:rtype: Integer
83+
:returns: The checksum for ``self.ean``.
8584
"""
8685

8786
def sum_(x, y):

0 commit comments

Comments
 (0)