Format: format code

This commit is contained in:
chenjiandongx 2019-03-21 19:11:51 +08:00
parent 0703c846e8
commit dd6ca61515
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,9 @@
# coding=utf-8
import uuid
from pyecharts.commons.types import ListTuple, Numeric, Optional, Union
from .. import options as opts
from ..charts.base import Base
from ..commons.types import ListTuple, Numeric, Optional, Union
from ..consts import RENDER_TYPE
COLORS = [

View File

@ -34,7 +34,9 @@ class Page:
def __len__(self):
return len(self._charts)
def render(self, path="render.html", template_name="simple_page.html"):
def render(
self, path: str = "render.html", template_name: str = "simple_page.html"
):
for c in self:
c.options = c.dump_options()
if c.theme not in BUILTIN_THEMES: