Skip to content

Commit 58e82de

Browse files
authored
chore(pyright): Bump pyright version to >=1.1.398 (#1964)
1 parent b0396b9 commit 58e82de

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ dev = [
100100
"isort>=5.10.1",
101101
"libsass>=0.23.0",
102102
"brand_yml>=0.1.0",
103-
"pyright>=1.1.383,<1.1.395",
103+
"pyright>=1.1.398",
104104
"pre-commit>=2.15.0",
105105
"wheel",
106106
"matplotlib",

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)