Skip to content

report an error when importing a private name #5773

Todo

Description

@DetachHead

Describe the Bug

from typing import _T

pyright reports this under reportPrivateUsage (equivalent to pyrefly's protected-access), but maybe it could be a separate rule?

Sandbox Link

https://pyrefly.org/sandbox/?project=v2.I6HIjA8h1sumIBcWFKUWp5aAhYAhF4PfGQA

(Only applicable for extension issues) IDE Information

No response

Activity

  1. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions