Skip to content

Consider vendoring third-party typeshed stubs, too #1104

Description

@aidandj

Summary

Given this small code block:

import grpc

try:
    something = 1
except grpc.RpcError as e:
    e.code()

I'm getting this error: warning[unresolved-attribute]: Type RpcErrorhas no attributecode``

This type exists in typeshed and pyright seems to pick it up and does not complain. But ty does.

Version

ty 0.0.1-alpha.19 (e9cb838 2025-08-19)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-decisionAwaiting a decision from a maintainerstubsissues with understanding stub (pyi) files

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions