authzed-py icon indicating copy to clipboard operation
authzed-py copied to clipboard

Include re-exports in pyi file

Open mateenkasim opened this issue 8 months ago • 0 comments

  • The recent addition of the __init__.pyi file means VSCode's Pylance looks to that file for static analysis, rather than the .py file.
  • This PR copies re-exports to the .pyi file, allowing VSCode to resolve re-exported paths such as this:
from authzed.api.v1 import CheckPermissionRequest

# Without this PR, Pylance only resolves this path
# from authzed.api.v1.permission_service_pb2 import CheckPermissionRequest

mateenkasim avatar Jun 17 '24 17:06 mateenkasim