[!] fix __setattr__
This commit is contained in:
parent
c261f7e140
commit
3581e6ae44
@ -97,9 +97,6 @@ class I18N:
|
|||||||
key = item.replace("_", ".") # заменяем _ на . для удобства
|
key = item.replace("_", ".") # заменяем _ на . для удобства
|
||||||
return NestedAccessor(self, [key]) # Начинаем цепочку
|
return NestedAccessor(self, [key]) # Начинаем цепочку
|
||||||
|
|
||||||
def __setattr__(self, key, value):
|
|
||||||
raise AttributeError("Can't set attribute")
|
|
||||||
|
|
||||||
def __call__(self, key: str, **kwargs):
|
def __call__(self, key: str, **kwargs):
|
||||||
return self.get_phrase(key, **kwargs)
|
return self.get_phrase(key, **kwargs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user