Skip to content

Commit 6fef69c

Browse files
committed
run precommit
1 parent b5f9151 commit 6fef69c

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

python/private/attributes.bzl

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,35 @@ in the resulting output or not. Valid values are:
375375
* `omit_source`: Don't include the original py source.
376376
""",
377377
),
378+
"pyi_deps": attr.label_list(
379+
doc = """
380+
Dependencies providing type definitions the library needs.
381+
382+
These are dependencies that satisfy imports guarded by `typing.TYPE_CHECKING`.
383+
These are build-time only dependencies and not included as part of a runnable
384+
program (packaging rules may include them, however).
385+
386+
:::{versionadded} VERSION_NEXT_FEATURE
387+
:::
388+
""",
389+
providers = [
390+
[PyInfo],
391+
[CcInfo],
392+
] + _MaybeBuiltinPyInfo,
393+
),
394+
"pyi_srcs": attr.label_list(
395+
doc = """
396+
Type definition files for the library.
397+
398+
These are typically `.pyi` files, but other file types for type-checker specific
399+
formats are allowed. These files are build-time only dependencies and not included
400+
as part of a runnable program (packaging rules may include them, however).
401+
402+
:::{versionadded} VERSION_NEXT_FEATURE
403+
:::
404+
""",
405+
allow_files = True,
406+
),
378407
# Required attribute, but details vary by rule.
379408
# Use create_srcs_attr to create one.
380409
"srcs": None,
@@ -395,35 +424,6 @@ in the resulting output or not. Valid values are:
395424
# Force enabling auto exec groups, see
396425
# https://bazel.build/extending/auto-exec-groups#how-enable-particular-rule
397426
"_use_auto_exec_groups": attr.bool(default = True),
398-
"pyi_srcs": attr.label_list(
399-
doc = """
400-
Type definition files for the library.
401-
402-
These are typically `.pyi` files, but other file types for type-checker specific
403-
formats are allowed. These files are build-time only dependencies and not included
404-
as part of a runnable program (packaging rules may include them, however).
405-
406-
:::{versionadded} VERSION_NEXT_FEATURE
407-
:::
408-
""",
409-
allow_files = True,
410-
),
411-
"pyi_deps": attr.label_list(
412-
doc = """
413-
Dependencies providing type definitions the library needs.
414-
415-
These are dependencies that satisfy imports guarded by `typing.TYPE_CHECKING`.
416-
These are build-time only dependencies and not included as part of a runnable
417-
program (packaging rules may include them, however).
418-
419-
:::{versionadded} VERSION_NEXT_FEATURE
420-
:::
421-
""",
422-
providers = [
423-
[PyInfo],
424-
[CcInfo],
425-
] + _MaybeBuiltinPyInfo,
426-
),
427427
},
428428
allow_none = True,
429429
)

0 commit comments

Comments
 (0)