mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00

I've corrected some obvious issues, and we can fix others over time. Mypy tests are currently broken, as adding the type hints has increased mypy's testing surface.
9 lines
308 B
Python
9 lines
308 B
Python
from .template import Template
|
|
from . import furigana; furigana.install()
|
|
from . import hint; hint.install()
|
|
from typing import Any
|
|
|
|
def render(template, context=None, **kwargs) -> Any:
|
|
context = context and context.copy() or {}
|
|
context.update(kwargs)
|
|
return Template(template, context).render()
|