Skip to content

Commit

Permalink
[xplat][buck2][typing] Fix typechecker issue (pytorch#108525)
Browse files Browse the repository at this point in the history
Test Plan: CI

Reviewed By: JakobDegen

Differential Revision: D48817210

Pull Request resolved: pytorch#108525
Approved by: https://github.com/osalpekar
  • Loading branch information
stepancheg authored and pytorchmergebot committed Sep 5, 2023
1 parent 8da04e0 commit 1e0e55c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pt_ops.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ def pt_operator_library(

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

if False:
# TODO(nga): `yaml_option` is never `None`, but it is checked against `None` below.
# Typechecker (`--unstable-typecheck`) catches it.
yaml_option = None

fb_xplat_genrule(
name = name,
out = "model_operators.yaml",
Expand Down

0 comments on commit 1e0e55c

Please sign in to comment.