Typing improved
This commit is contained in:
parent
872b134ede
commit
3088d2bc66
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user