enh: allow empty parts in CallbackData

This commit is contained in:
uburuntu 2021-07-31 22:54:25 +03:00
parent 29d2ffc9ed
commit d6b93c25a5
No known key found for this signature in database
GPG key ID: 59E643252F903BE1

View file

@ -64,8 +64,6 @@ class CallbackData:
if value is not None and not isinstance(value, str):
value = str(value)
if not value:
raise ValueError(f"Value for part {part!r} can't be empty!'")
if self.sep in value:
raise ValueError(f"Symbol {self.sep!r} is defined as the separator and can't be used in parts' values")