Skip to content

Commit 36b724a

Browse files
Pyre Bot Jrfacebook-github-bot
authored andcommitted
suppress errors in fbcode/tools - batch 2
Differential Revision: D28963026 fbshipit-source-id: 67c51aa657604bc71d51751a60eb183c8c98217d
1 parent 88f007d commit 36b724a

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.pyre_configuration

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@
5050
"."
5151
],
5252
"strict": true,
53-
"version": "0.0.101622459437"
53+
"version": "0.0.101623153145"
5454
}

client/commands/infer_v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def _sanitize_name(name: str) -> str:
3232
return name.split(".")[-1]
3333

3434

35+
# pyre-fixme[11]: Annotation `TypeAlias` is not defined as a type.
3536
RawInferOutputDict: TypeAlias = Dict[str, List[Dict[str, object]]]
3637

3738

client/pyre.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,8 @@ def pyre(
575575
help="Directory to write analysis results to.",
576576
)
577577
@click.option("--dump-call-graph", is_flag=True, default=False, hidden=True)
578+
# pyre-fixme[56]: Pyre was not able to infer the type of argument `os.path.abspath`
579+
# to decorator factory `click.option`.
578580
@click.option("--repository-root", type=os.path.abspath)
579581
@click.option(
580582
"--rule",
@@ -668,6 +670,8 @@ def analyze(
668670

669671
@pyre.command()
670672
@click.option("--dump-call-graph", is_flag=True, default=False, hidden=True)
673+
# pyre-fixme[56]: Pyre was not able to infer the type of argument `os.path.abspath`
674+
# to decorator factory `click.option`.
671675
@click.option("--repository-root", type=os.path.abspath)
672676
@click.option(
673677
"--use-cache",
@@ -1065,6 +1069,8 @@ def query(context: click.Context, query: str) -> int:
10651069

10661070

10671071
@pyre.command()
1072+
# pyre-fixme[56]: Pyre was not able to infer the type of argument `os.path.abspath`
1073+
# to decorator factory `click.option`.
10681074
@click.option(
10691075
"--output-file",
10701076
type=os.path.abspath,

client/tests/analysis_directory_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ def assertFileIsLinkedBothWays(
140140
)
141141

142142
@patch(f"{analysis_directory_name}.find_buck_root", return_value="/buck_root")
143-
# pyre-fixme[56]: Argument `os.path` to decorator factory
144-
# `unittest.mock.patch.object` could not be resolved in a global scope.
145143
@patch.object(os.path, "exists", return_value=True)
146144
def test_filter_root_for_buck(
147145
self, exists: MagicMock, buck_root: MagicMock
@@ -1047,10 +1045,10 @@ def test_merge_into_paths(self) -> None:
10471045
@patch.object(filesystem, "is_empty", return_value=False)
10481046
@patch.object(os, "symlink")
10491047
@patch.object(subprocess, "check_output")
1048+
# pyre-fixme[56]: Pyre was not able to infer the type of argument `os` to
1049+
# decorator factory `unittest.mock.patch.object`.
10501050
@patch.object(os, "makedirs")
10511051
@patch.object(os.path, "exists")
1052-
# pyre-fixme[56]: Argument `os.path` to decorator factory
1053-
# `unittest.mock.patch.object` could not be resolved in a global scope.
10541052
@patch.object(os.path, "realpath")
10551053
def test_merge(
10561054
self,

scripts/pypi/build_pypi_package.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,13 @@ def build_pypi_package(
304304
_strip_binary(build_path)
305305
_sync_documentation_files(pyre_directory, build_path)
306306

307+
# pyre-fixme[6]: Expected `Path` for 2nd param but got `str`.
307308
_run_setup_command(pyre_directory, build_root, version, "sdist", nightly)
308309
_create_dist_directory(pyre_directory)
309310
_create_setup_configuration(build_path)
310311
twine_check([path.as_posix() for path in (build_path / "dist").iterdir()])
311312

313+
# pyre-fixme[6]: Expected `Path` for 2nd param but got `str`.
312314
_run_setup_command(pyre_directory, build_root, version, "bdist_wheel", nightly)
313315
wheel_destination, distribution_destination = _rename_and_move_artifacts(
314316
pyre_directory, build_path

0 commit comments

Comments
 (0)