Update __init__.py

This commit is contained in:
沈瑗杰 2023-01-23 15:48:09 +08:00
parent aa7d359cf6
commit 03d46c7043

View File

@ -114,8 +114,8 @@ class Options:
def format(self, text: str) -> str:
cache_option = self.flush_option()
for option in cache_option:
text.replace(f'\{{option}\}')
for option, value in cache_option.items():
text.replace(f'{{{option}}}', value)
def flush_option(self) -> Dict[str, Any]:
"""