You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Breaking change
Immutability of Lang. In order to be added into sets or used as dict keys, Lang instances must be hashable. As the hash of an instance needs to be predictable, Lang is now immutable.
New features
hashability of Lang
sortability of Lang (by name)
support of ISO 639-3 types
support of ISO 639-3 scopes
iter_langs iterator through all possible Lang instances
Bug fixes
not just invalid strings but any invalid argument passed to Lang raises an InvalidLanguageValue exception.
as long as they are compatible, positional and keyword arguments can be passed to Lang together.