Skip to content

Commit 5da24ea

Browse files
committed
Fix various static typing issues.
1 parent 6d7dfc3 commit 5da24ea

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
__application_name__,
4242
external_scripts=os.environ.get("COLOUR_DASH_JS", "").split(","),
4343
external_stylesheets=os.environ.get("COLOUR_DASH_CSS", "").split(","),
44-
server=SERVER,
44+
server=SERVER, # pyright: ignore
4545
)
4646
"""
4747
*Dash* app.

apps/rgb_colourspace_transformation_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _uid(id_):
245245
def set_RGB_to_RGB_matrix_output(
246246
input_colourspace: str,
247247
output_colourspace: str,
248-
chromatic_adaptation_transform: str,
248+
chromatic_adaptation_transform: str | None,
249249
formatter: str,
250250
decimals: int,
251251
) -> str:

index.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
=====
44
"""
55

6+
import dash
67
from dash.dependencies import Input, Output
78
from dash.dcc import Link, Location, Markdown
89
from dash.html import A, Div, H3, P
@@ -24,7 +25,7 @@
2425

2526

2627
@APP.callback(Output("apps", "children"), [Input("url", "pathname")])
27-
def load_app(app: APP):
28+
def load_app(app: dash.Dash):
2829
"""
2930
Load given app into the appropriate :class:`Div` class instance.
3031

0 commit comments

Comments
 (0)