Update dependency rules_python to v0.40.0 (#148)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 3cda949..4c9ef34 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -31,6 +31,6 @@
 
 bazel_dep(name = "rules_java", version = "8.6.0")
 bazel_dep(name = "bazel_skylib", version = "1.6.1")
-bazel_dep(name = "rules_python", version = "0.37.2")
+bazel_dep(name = "rules_python", version = "0.40.0")
 
 bazel_dep(name = "buildifier_prebuilt", version = "8.5.1.2", dev_dependency = True)
diff --git a/WORKSPACE b/WORKSPACE
index e549459..86107de 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -56,9 +56,9 @@
 
 http_archive(
     name = "rules_python",
-    sha256 = "c6fb25d0ba0246f6d5bd820dd0b2e66b339ccc510242fd4956b9a639b548d113",
-    strip_prefix = "rules_python-0.37.2",
-    url = "https://github.com/bazelbuild/rules_python/releases/download/0.37.2/rules_python-0.37.2.tar.gz",
+    sha256 = "690e0141724abb568267e003c7b6d9a54925df40c275a870a4d934161dc9dd53",
+    strip_prefix = "rules_python-0.40.0",
+    url = "https://github.com/bazelbuild/rules_python/releases/download/0.40.0/rules_python-0.40.0.tar.gz",
 )
 
 load("@rules_python//python:repositories.bzl", "py_repositories")