Typing improved

This commit is contained in:
Lukas Klass 2020-05-20 09:12:55 +02:00
parent 872b134ede
commit 3088d2bc66

View File

@ -84,7 +84,7 @@ class Entry(object):
"' but got unit '" + attr.unit.to_string() + "'."
return None
def check_selection(self, name, choices: list) -> Union[None, str]:
def check_selection(self, name: str, choices: list) -> Union[None, str]:
"""
Check a parameter against a list of possible choices. In case of a mismatch, a recommendation will be given.