diff --git a/eden/cli/debug.py b/eden/cli/debug.py index c8b9f68a4e..7a5b694c1a 100644 --- a/eden/cli/debug.py +++ b/eden/cli/debug.py @@ -707,7 +707,6 @@ class LoggingCmd(Subcmd): if args.reset and args.config is None: # The configuration to use if the caller specifies --reset with no # explicit config argument. - # pyre-fixme[16]: `Namespace` has no attribute `config`. args.config = ( "WARN:default,eden=DBG2; default=stream:stream=stderr,async=true" ) diff --git a/eden/cli/main.py b/eden/cli/main.py index 8169e8a784..07e7f04b72 100644 --- a/eden/cli/main.py +++ b/eden/cli/main.py @@ -544,7 +544,6 @@ class CloneCmd(Subcmd): ) return 1 - # pyre-fixme[16]: `Namespace` has no attribute `path`. args.path = os.path.realpath(args.path) # Find the repository information @@ -1090,7 +1089,6 @@ class PrefetchCmd(Subcmd): if args.pattern_file is not None: with open(args.pattern_file) as f: - # pyre-fixme[16]: `Namespace` has no attribute `PATTERN`. args.PATTERN += [pat.strip() for pat in f.readlines()] if os.name == "nt": @@ -1385,7 +1383,6 @@ class RestartCmd(Subcmd): self.args = args if args.restart_type is None: # Default to a full restart for now - # pyre-fixme[16]: `Namespace` has no attribute `restart_type`. args.restart_type = RESTART_MODE_FULL instance = get_eden_instance(self.args) diff --git a/eden/cli/systemd.py b/eden/cli/systemd.py index e069341109..031353d6eb 100644 --- a/eden/cli/systemd.py +++ b/eden/cli/systemd.py @@ -127,7 +127,6 @@ class SystemdEnvironmentFile: cls._validate_entry(name, value) output.extend(name) output.extend(b"=") - # pyre-fixme[16]: `Type` has no attribute `__escape_value`. output.extend(cls.__escape_value(value)) output.extend(b"\n") return bytes(output) diff --git a/eden/integration/clone_test.py b/eden/integration/clone_test.py index 0eaf289f10..13a44394af 100644 --- a/eden/integration/clone_test.py +++ b/eden/integration/clone_test.py @@ -354,7 +354,11 @@ class CloneFakeEdenFSTestBase(ServiceTestCaseBase, PexpectAssertionMixin): if extra_args: args.extend(extra_args) return pexpect.spawn( - FindExe.EDEN_CLI, args, encoding="utf-8", logfile=sys.stderr + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. + FindExe.EDEN_CLI, + args, + encoding="utf-8", + logfile=sys.stderr, ) diff --git a/eden/integration/health_test.py b/eden/integration/health_test.py index f61a15243d..a020d8575b 100644 --- a/eden/integration/health_test.py +++ b/eden/integration/health_test.py @@ -70,6 +70,7 @@ class HealthOfFakeEdenFSTest(ServiceTestCaseBase, PexpectAssertionMixin): def spawn_status(self, extra_args: typing.List[str]) -> "pexpect.spawn[str]": return pexpect.spawn( + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. FindExe.EDEN_CLI, ["--config-dir", str(self.temp_dir)] + self.get_required_eden_cli_args() diff --git a/eden/integration/start_test.py b/eden/integration/start_test.py index d033f25222..88c8b288eb 100644 --- a/eden/integration/start_test.py +++ b/eden/integration/start_test.py @@ -196,7 +196,11 @@ class StartFakeEdenFSTestBase(ServiceTestCaseBase, PexpectAssertionMixin): if extra_args: args.extend(extra_args) return pexpect.spawn( - FindExe.EDEN_CLI, args, encoding="utf-8", logfile=sys.stderr + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. + FindExe.EDEN_CLI, + args, + encoding="utf-8", + logfile=sys.stderr, ) @@ -325,7 +329,11 @@ class StartFakeEdenFSTest(StartFakeEdenFSTestBase, PexpectAssertionMixin): ] ) start_process: pexpect.spawn[str] = pexpect.spawn( - FindExe.EDEN_CLI, args, encoding="utf-8", logfile=sys.stderr + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. + FindExe.EDEN_CLI, + args, + encoding="utf-8", + logfile=sys.stderr, ) wait_for_pexpect_process(start_process) diff --git a/eden/integration/stop_test.py b/eden/integration/stop_test.py index 10cab580d7..05fcd59cfb 100644 --- a/eden/integration/stop_test.py +++ b/eden/integration/stop_test.py @@ -41,6 +41,7 @@ class StopTestBase(ServiceTestCaseBase): def spawn_stop(self, extra_args: typing.List[str]) -> "pexpect.spawn[str]": return pexpect.spawn( + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. FindExe.EDEN_CLI, ["--config-dir", str(self.eden_dir)] + self.get_required_eden_cli_args() diff --git a/eden/integration/systemd_test.py b/eden/integration/systemd_test.py index a7948e48ee..1b8ea3ff1e 100644 --- a/eden/integration/systemd_test.py +++ b/eden/integration/systemd_test.py @@ -46,6 +46,7 @@ class SystemdTest( def test(start_args: typing.List[str]) -> None: with self.subTest(start_args=start_args): start_process: "pexpect.spawn[str]" = pexpect.spawn( + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. FindExe.EDEN_CLI, self.get_required_eden_cli_args() + ["start", "--foreground"] @@ -73,6 +74,7 @@ class SystemdTest( def test(start_args: typing.List[str]) -> None: with self.subTest(start_args=start_args): start_process: "pexpect.spawn[str]" = pexpect.spawn( + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. FindExe.EDEN_CLI, self.get_required_eden_cli_args() + ["start", "--foreground"] @@ -202,6 +204,7 @@ class SystemdTest( self, extra_args: typing.Sequence[str] = () ) -> "pexpect.spawn[str]": return pexpect.spawn( + # pyre-fixme[6]: Expected `str` for 1st param but got `() -> str`. FindExe.EDEN_CLI, self.get_required_eden_cli_args() + [ diff --git a/eden/scm/edenscm/mercurial/pure/osutil.py b/eden/scm/edenscm/mercurial/pure/osutil.py index 5a51dffcc8..88b31a1537 100644 --- a/eden/scm/edenscm/mercurial/pure/osutil.py +++ b/eden/scm/edenscm/mercurial/pure/osutil.py @@ -118,7 +118,8 @@ if not pycompat.iswindows: (u"cmsg_len", _cmsg_len_t), (u"cmsg_level", ctypes.c_int), (u"cmsg_type", ctypes.c_int), - # pyre-fixme[16]: `c_ubyte` has no attribute `__mul__`. + # pyre-fixme[6]: Expected `int` for 1st param but got + # `Type[ctypes.c_ubyte]`. (u"cmsg_data", ctypes.c_ubyte * 0), ]