Skip to content

Conversation

@schloerke
Copy link
Collaborator

No description provided.

@schloerke schloerke requested a review from Copilot April 8, 2025 05:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

shiny/ui/_page.py:754

  • Removing this cast may lead to type-checker issues if 'page_fn' does not clearly conform to the expected type. If the new pyright version handles implicit conversions, please verify that 'page_fn' is always callable as expected.
    page_fn = cast(Callable[..., Tag], page_fn)

shiny/_app.py:11

  • Removing this import is fine if starlette.exceptions is not used elsewhere, but please confirm that no exception handling or related logic depends on it.
import starlette.exceptions

from typing import Any, Callable, Literal, Mapping, Optional, TypeVar, cast

import starlette.applications
import starlette.exceptions
Copy link
Collaborator Author

@schloerke schloerke Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcheng5 Is this import needed? pyright flagged it as unused. (It is not directly used within the code other than this import statement.)

I believe we can remove it. Just wanted to be sure it didn't have any side effects from being accessed.

@schloerke
Copy link
Collaborator Author

I believe these changes are good. Merging to unlock pyright

@schloerke schloerke enabled auto-merge (squash) April 8, 2025 05:32
@schloerke schloerke merged commit 58e82de into main Apr 8, 2025
54 checks passed
@schloerke schloerke deleted the pyright-update branch April 8, 2025 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants