mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
fix: 🩹 added return type for check_validity function
This commit is contained in:
parent
7f689e4f5c
commit
812ae42274
@ -42,10 +42,10 @@ Sources :
|
||||
valid_variables: list[str] = ["v1", "v2", "p1", "p2"]
|
||||
|
||||
|
||||
def check_validity(values: dict[str, float]):
|
||||
def check_validity(values: dict[str, float]) -> None:
|
||||
"""
|
||||
|
||||
Function takes dictionary as an input and returns True if the input
|
||||
Function takes dictionary as an input and returns nothing if the input
|
||||
is valid
|
||||
|
||||
>>> check_validity({})
|
||||
|
Loading…
Reference in New Issue
Block a user