Skip to content

Commit 1e0e55c

Browse files
stepanchegpytorchmergebot
authored andcommitted
[xplat][buck2][typing] Fix typechecker issue (pytorch#108525)
Test Plan: CI Reviewed By: JakobDegen Differential Revision: D48817210 Pull Request resolved: pytorch#108525 Approved by: https://github.com/osalpekar
1 parent 8da04e0 commit 1e0e55c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pt_ops.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ def pt_operator_library(
7979

8080
not_include_all_overloads_closure_ops = kwargs.pop("not_include_all_overloads_closure_ops", False)
8181

82+
if False:
83+
# TODO(nga): `yaml_option` is never `None`, but it is checked against `None` below.
84+
# Typechecker (`--unstable-typecheck`) catches it.
85+
yaml_option = None
86+
8287
fb_xplat_genrule(
8388
name = name,
8489
out = "model_operators.yaml",

0 commit comments

Comments
 (0)