Skip to content

Commit

Permalink
refactor: remove the types
Browse files Browse the repository at this point in the history
  • Loading branch information
alifa98 committed Jul 11, 2023
1 parent 6f258fe commit bec22fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions gamekit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@


from gamekit.exceptions import *
from gamekit import algorithms
from gamekit.algorithms import *
from gamekit.algorithms import *
2 changes: 0 additions & 2 deletions gamekit/algorithms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


from gamekit.algorithms.bankruptcy import *


6 changes: 3 additions & 3 deletions gamekit/algorithms/bankruptcy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from gamekit import NegativeNumberException


def constrained_equal_awards(claims: list, asset: float) -> tuple[list, float]:
def constrained_equal_awards(claims, asset):
"""
This function returns a list of allocations based on the constrained equal allocation method.
If the asset is larger than the sum of claims, returns the claims list itself.
Expand Down Expand Up @@ -67,14 +67,14 @@ def constrained_equal_awards(claims: list, asset: float) -> tuple[list, float]:
return allocations, r


def CEA(claims: list, asset: float) -> tuple[list, float]:
def CEA(claims, asset):
"""
equal to the `constrained_equal_awards` function.
"""
return constrained_equal_awards(claims, asset)


def constrained_equal_losses(claims: list, asset: float) -> tuple[list, float]:
def constrained_equal_losses(claims, asset):
"""
This function returns a list of allocations based on the constrained equal loss method.
If the asset is larger than the sum of claims, returns the claims list itself.
Expand Down

0 comments on commit bec22fb

Please sign in to comment.