Add version strings to the packages.

This commit is contained in:
Andrew Hamilton 2021-12-22 20:47:31 +10:00
parent b522577fa3
commit 949f5f6d24
4 changed files with 12 additions and 0 deletions

View file

@ -13,6 +13,9 @@ import fill3.terminal as terminal
import termstr
__version__ = "v2021.12.22"
def appearance_is_valid(appearance):
return (all(isinstance(line, (str, termstr.TermStr)) and len(line) > 0 for line in appearance)
and len(set(len(line) for line in appearance)) < 2)