@@ -51,7 +51,6 @@ def __init__(
5151 ) -> None :
5252 self .env : Env = Env ()
5353 if env :
54- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got
5554 # `Env`.
5655 self .env .update (env )
5756
@@ -118,7 +117,6 @@ def _run_cmd(
118117 ) -> int :
119118 if env :
120119 e = self .env .copy ()
121- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got
122120 # `Env`.
123121 e .update (env )
124122 env = e
@@ -168,7 +166,6 @@ def _apply_patchfile(self) -> None:
168166 patchfile = os .path .join (
169167 self .build_opts .fbcode_builder_dir ,
170168 "patches" ,
171- # pyre-fixme[6]: For 3rd argument expected `Union[PathLike[str], str]`
172169 # but got `Optional[str]`.
173170 self .patchfile ,
174171 )
@@ -437,7 +434,6 @@ def run_tests(
437434
438435 cmd = (
439436 [self ._make_binary , "-j%s" % self .num_jobs ]
440- # pyre-fixme[58]: `+` is not supported for operand types
441437 # `list[Optional[str]]` and `Optional[list[str]]`.
442438 + self .test_args
443439 + self ._get_prefix ()
@@ -608,7 +604,6 @@ def __init__(
608604
609605 def _build (self , reconfigure : bool ) -> None :
610606 env = self ._compute_env ()
611- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
612607 meson : str | None = path_search (env , "meson" )
613608 if meson is None :
614609 raise Exception ("Failed to find Meson" )
@@ -913,7 +908,6 @@ def _compute_cmake_define_args(self, env: Env) -> list[str]:
913908 # separator, so translate the runtime path to something
914909 # that cmake will parse
915910 defines ["CMAKE_INSTALL_RPATH" ] = ";" .join (
916- # pyre-fixme[16]: Optional type has no attribute `split`.
917911 env .get ("DYLD_LIBRARY_PATH" , "" ).split (":" )
918912 )
919913 # Tell cmake that we want to set the rpath in the tree
@@ -986,7 +980,6 @@ def _build(self, reconfigure: bool) -> None:
986980 env ["DESTDIR" ] = self .inst_dir
987981
988982 # Resolve the cmake that we installed
989- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
990983 cmake = path_search (env , "cmake" )
991984 if cmake is None :
992985 raise Exception ("Failed to find CMake" )
@@ -1004,7 +997,6 @@ def _build(self, reconfigure: bool) -> None:
1004997 self ._write_build_script (
1005998 cmd_prefix = self ._get_cmd_prefix (),
1006999 cmake = cmake ,
1007- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but
10081000 # got `Env`.
10091001 ctest = path_search (env , "ctest" ),
10101002 env = env ,
@@ -1050,7 +1042,6 @@ def _build_targets(self, targets: Sequence[str]) -> None:
10501042 return
10511043
10521044 env = self ._compute_env ()
1053- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
10541045 cmake = path_search (env , "cmake" )
10551046 if cmake is None :
10561047 raise RuntimeError ("unable to find cmake" )
@@ -1134,9 +1125,7 @@ def run_tests(
11341125 timeout : int | None = None ,
11351126 ) -> None :
11361127 env = self ._compute_env ()
1137- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
11381128 ctest : str | None = path_search (env , "ctest" )
1139- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
11401129 cmake = path_search (env , "cmake" )
11411130
11421131 # Build only the missing test executables needed for the given filter.
@@ -1190,10 +1179,7 @@ def get_property(
11901179 return p .get ("value" , defval )
11911180 return defval
11921181
1193- # pyre-fixme[53]: Captured variable `cmake` is not annotated.
1194- # pyre-fixme[53]: Captured variable `env` is not annotated.
11951182 def list_tests () -> list [dict [str , object ]]:
1196- # pyrefly: ignore [no-matching-overload]
11971183 output = subprocess .check_output (
11981184 [require_command (ctest , "ctest" ), "--show-only=json-v1" ],
11991185 env = env ,
@@ -1258,7 +1244,6 @@ def list_tests() -> list[dict[str, object]]:
12581244 try :
12591245 from .facebook .testinfra import start_run
12601246
1261- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got
12621247 # `Env`.
12631248 tpx = path_search (env , "tpx" )
12641249 except ImportError :
@@ -1457,7 +1442,6 @@ def _build(self, reconfigure: bool) -> None:
14571442 bindir = os .path .join (self .loader .get_project_install_dir (m ), "bin" )
14581443 add_path_entry (env , "PATH" , bindir , append = False )
14591444
1460- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
14611445 perl = typing .cast (str , path_search (env , "perl" , "perl" ))
14621446
14631447 make_j_args = []
@@ -1781,7 +1765,6 @@ def _build(self, reconfigure: bool) -> None:
17811765 env = self ._compute_env ()
17821766
17831767 # Resolve the cmake that we installed
1784- # pyre-fixme[6]: For 1st argument expected `Mapping[str, str]` but got `Env`.
17851768 cmake = path_search (env , "cmake" )
17861769
17871770 # pyre-fixme[6]: For 1st argument expected `List[str]` but got
0 commit comments