Skip to content

Commit

Permalink
chore: Add python/typeshed to the workspace.
Browse files Browse the repository at this point in the history
This contains requests, which helps mypy typecheck our code.
  • Loading branch information
iphydf committed Dec 30, 2024
1 parent e303fb9 commit f34ff06
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ new_github_archive(
version = "4.12.2",
)

# https://github.com/python/typeshed
new_github_archive(
name = "typeshed",
integrity = "sha256-5xk4xOdabdwespPoOvc6ap1RrBkkTO8FpN3/HsW2f84=",
repo = "python/typeshed",
version = "ca6251ad64cf6747c61ed5a453d943264a106008",
)

# Fuzzing
# =========================================================

Expand Down
13 changes: 13 additions & 0 deletions third_party/BUILD.typeshed
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
load("@rules_python//python:defs.bzl", "py_library")

py_library(
name = "requests",
data = glob(["stubs/requests/requests/*.pyi"]),
visibility = ["//visibility:public"],
)

filegroup(
name = "typeshed",
srcs = [":requests"],
visibility = ["//visibility:public"],
)

0 comments on commit f34ff06

Please sign in to comment.