Skip to content

Commit c0bf5dc

Browse files
committed
Fix pyright lints
1 parent 3699405 commit c0bf5dc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

shiny/_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from typing import Any, Callable, Literal, Mapping, Optional, TypeVar, cast
1010

1111
import starlette.applications
12-
import starlette.exceptions
1312
import starlette.middleware
1413
import starlette.routing
1514
import starlette.websockets

shiny/ui/_page.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
from copy import copy
17-
from typing import Any, Callable, Literal, Optional, Sequence, cast
17+
from typing import Any, Callable, Literal, Optional, Sequence
1818

1919
from htmltools import (
2020
MetadataNode,
@@ -752,7 +752,6 @@ def page_auto(
752752
)
753753

754754
# If we got here, _page_fn is not None, but the type checker needs a little help.
755-
page_fn = cast(Callable[..., Tag], page_fn)
756755
return page_fn(*args, **kwargs)
757756

758757

0 commit comments

Comments
 (0)