lazy_gettext (aliased as __) returns LazyString, which is not compatible with str and causes downstream type errors. Since it's meant to ducktype a string and works in almost all situations (notable exception: json.dumps), we re-cast __ to claim it returns str.
Baseframe was also incorrectly exporting _ and __ bound to the Baseframe translation domain.
lazy_gettext
(aliased as__
) returnsLazyString
, which is not compatible withstr
and causes downstream type errors. Since it's meant to ducktype a string and works in almost all situations (notable exception:json.dumps
), we re-cast__
to claim it returnsstr
.Baseframe was also incorrectly exporting
_
and__
bound to the Baseframe translation domain.