diff --git a/pyproject.toml b/pyproject.toml index c51a7d97f..4c2f7ba45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,7 +100,7 @@ dev = [ "isort>=5.10.1", "libsass>=0.23.0", "brand_yml>=0.1.0", - "pyright>=1.1.383,<1.1.395", + "pyright>=1.1.398", "pre-commit>=2.15.0", "wheel", "matplotlib", diff --git a/shiny/_app.py b/shiny/_app.py index a161cb03a..0de886a69 100644 --- a/shiny/_app.py +++ b/shiny/_app.py @@ -9,7 +9,6 @@ from typing import Any, Callable, Literal, Mapping, Optional, TypeVar, cast import starlette.applications -import starlette.exceptions import starlette.middleware import starlette.routing import starlette.websockets diff --git a/shiny/ui/_page.py b/shiny/ui/_page.py index 2ba9c7055..3c3ab16bb 100644 --- a/shiny/ui/_page.py +++ b/shiny/ui/_page.py @@ -14,7 +14,7 @@ ) from copy import copy -from typing import Any, Callable, Literal, Optional, Sequence, cast +from typing import Any, Callable, Literal, Optional, Sequence from htmltools import ( MetadataNode, @@ -752,7 +752,6 @@ def page_auto( ) # If we got here, _page_fn is not None, but the type checker needs a little help. - page_fn = cast(Callable[..., Tag], page_fn) return page_fn(*args, **kwargs)