Skip to content

Commit 4cfd1fb

Browse files
authored
Change decimals parameter type to Optional[int]
1 parent 28c01a5 commit 4cfd1fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

percentify/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from typing import SupportsFloat
1+
from typing import SupportsFloat, Optional
22

3-
def percent(part: SupportsFloat, whole: SupportsFloat, decimals: int | None = 2) -> float:
3+
def percent(part: SupportsFloat, whole: SupportsFloat, decimals: Optional[int] = 2) -> float:
44
"""
55
Calculate what percentage `part` is of the `whole`.
66

0 commit comments

Comments
 (0)