Skip to content

Commit

Permalink
[antlir][buck2][starlark][typing] String literals to symbols
Browse files Browse the repository at this point in the history
Summary: String literals in types are deprecated.

Test Plan: CI

Reviewed By: vmagro

Differential Revision: D50810182

fbshipit-source-id: 2f7bc56245a8ac05a16464fabe9b911e7ef1a156
  • Loading branch information
stepancheg authored and facebook-github-bot committed Oct 30, 2023
1 parent 496d999 commit e6e9662
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions antlir/website/gen/gen_apis.bxl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# @starlark-rust: allow_string_literals_in_type_expr

def _internal_rustdoc_url(target: "target_node") -> str:
def _internal_rustdoc_url(target: bxl.ConfiguredTargetNode) -> str:
lazy = target.attrs_lazy()
crate = lazy.get("crate").value()
if not crate:
Expand Down

0 comments on commit e6e9662

Please sign in to comment.