浏览代码

code review

Falko Schindler 1 年之前
父节点
当前提交
4e45816b87
共有 3 个文件被更改,包括 2 次插入4 次删除
  1. 0 2
      examples/modularization/home_page.py
  2. 1 1
      examples/modularization/message.py
  3. 1 1
      examples/modularization/theme.py

+ 0 - 2
examples/modularization/home_page.py

@@ -1,7 +1,5 @@
 from message import message
 
-from nicegui import ui
-
 
 def content() -> None:
     message('This is the home page.').classes('font-bold')

+ 1 - 1
examples/modularization/message.py

@@ -3,6 +3,6 @@ from nicegui import ui
 
 class message(ui.label):
 
-    def __init__(self, text: str):
+    def __init__(self, text: str) -> None:
         super().__init__(text)
         self.classes('text-h4 text-grey-8')

+ 1 - 1
examples/modularization/theme.py

@@ -7,7 +7,7 @@ from nicegui import ui
 
 @contextmanager
 def frame(navtitle: str):
-    '''Custom page frame to share the same styling and behavior across all pages'''
+    """Custom page frame to share the same styling and behavior across all pages"""
     ui.colors(primary='#6E93D6', secondary='#53B689', accent='#111B1E', positive='#53B689')
     with ui.header().classes('justify-between text-white'):
         ui.label('Modularization Example').classes('font-bold')