mirror of
https://github.com/pyecharts/pyecharts.git
synced 2025-12-08 20:59:23 +00:00
Format: format code
This commit is contained in:
parent
0703c846e8
commit
dd6ca61515
@ -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 = [
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user