Skip to content

Commit eb7e1a4

Browse files
generatedunixname893464919433493meta-codesync[bot]
authored andcommitted
Migrate conftest.py and fib_test.py to pyre-strict
Summary: ## Summary: Migrate 2 Python files from pyre-unsafe/no-directive to pyre-strict: - `fbcode/eden/mononoke/tests/mock_restricted_path/test_infra/python/pytest/conftest.py`: Added `# pyre-strict` directive and return type annotation (`-> int`) to `my_fixture()`. - `fbcode/hermetic_infra/fdb_playground/python/fib_test.py`: Replaced `# pyre-unsafe` with `# pyre-strict`. All existing type annotations and pyre-fixme comments for native C++ module imports are preserved. `arc pyre check-changed-targets` confirms zero type errors across both files. --- ## Instructions about RACER Diffs: **Commandeer this diff (recommended) or land with accept2ship tag.** **This diff was generated by Racer AI agent on behalf of [Amr Defrawy](https://www.internalfb.com/profile/view/803099855260648) for T266879416. If the diff quality is poor, consider contacting the user to provide clearer instructions on the task.** - If you are happy with the changes, commandeer it if minor edits are needed. (**we encourage commandeer to get the diff credit**) - If you are not happy with the changes, please comment on the diff with clear actions and send it back to the author. Racer will pick it up and re-generate. - If you really feel the Racer is not helping with this change (alas, some complex changes are hard for AI) feel free to abandon this diff. - **For M10N reviewers:** as you review AI-generated diffs, we ask you to give them the same priority as human-generated diffs, and take action in a timely manner by either accepting, rejecting, or resigning as a reviewer. For diffs that don't meet the quality bar (e.g. code doesn't compile, not readable or introduces functionality regressions), we ask that you use the following hashtags to provide clear signals to improve our tools - `#monlowqualitydiff` `#monwrongreviewerdiff` --- > Generated by [RACER](https://www.internalfb.com/wiki/RACER_(Risk-Aware_Code_Editing_and_Refactoring)/), powered by [Confucius](https://www.internalfb.com/wiki/Confucius/Analect/Shared_Analects/Confucius_Code_Assist_(CCA)/) [Session](https://www.internalfb.com/confucius?session_id=0f23d034-42b1-11f1-9ef9-4b157bb52178&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=0f23d034-42b1-11f1-9ef9-4b157bb52178&tab=Trace) [Session](https://www.internalfb.com/confucius?session_id=cef7bd66-450f-11f1-b95a-3bf206a0f11a&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=cef7bd66-450f-11f1-b95a-3bf206a0f11a&tab=Trace) [Session](https://www.internalfb.com/confucius?session_id=a16f9638-476d-11f1-a119-a9242964ed54&tab=Chat), [Trace](https://www.internalfb.com/confucius?session_id=a16f9638-476d-11f1-a119-a9242964ed54&tab=Trace) Reviewed By: aperez Differential Revision: D102427925 fbshipit-source-id: e132ad92b96e62acd5e3142a4b9888310a08c2a6
1 parent 481052d commit eb7e1a4

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • eden/mononoke/tests/mock_restricted_path/test_infra/python/pytest
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
#
3+
# This software may be used and distributed according to the terms of the
4+
# GNU General Public License version 2.
5+
6+
# pyre-strict
27

38
import pytest
49

510

611
@pytest.fixture(scope="module")
7-
def my_fixture():
12+
def my_fixture() -> int:
813
return 123

0 commit comments

Comments
 (0)