Browse Source

code review

Falko Schindler 1 year ago
parent
commit
4e45816b87

+ 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')