From 0cace549db2cd9891953d1b6e40253fb89f4a278 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sun, 27 Sep 2026 19:57:46 -0700 Subject: [PATCH] docs(uv): annotate _RunLockInfo provider field types `_RunLockInfo` lacked a provider docstring and `:type:` annotations on its fields, making it harder for maintainers to inspect the expected field types and provider purpose. Add a provider description and `:type:` annotations to each field in `_RunLockInfo`. --- python/uv/private/lock.bzl | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/python/uv/private/lock.bzl b/python/uv/private/lock.bzl index 33c301d49c..c63f761e8b 100644 --- a/python/uv/private/lock.bzl +++ b/python/uv/private/lock.bzl @@ -26,12 +26,28 @@ load(":toolchain_types.bzl", "UV_TOOLCHAIN_TYPE") visibility(["//..."]) _RunLockInfo = provider( - doc = "", + doc = "Information for running the lock command directly via `bazel run`.", fields = { - "args": "The args passed to the `uv` by default when running the runnable target.", - "env": "The env passed to the execution.", - "srcs": "Source files required to run the runnable target.", - "template": "The template file for writing a script.", + "args": """ +:type: list[str | File] + +The args passed to `uv` by default when running the runnable target. +""", + "env": """ +:type: dict[str, str] + +The env passed to the execution. +""", + "srcs": """ +:type: depset[File] + +Source files required to run the runnable target. +""", + "template": """ +:type: File + +The template file for writing a script. +""", }, )