mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
Update pyre version for eden
Summary: Automatic upgrade to remove `version` override and silence errors. Differential Revision: D19548623 fbshipit-source-id: 12d5e8ec6450de42107d07b230e4b2d0824f7c9d
This commit is contained in:
parent
d9a51e3bac
commit
c717ef0d7d
@ -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"
|
||||
)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
+ [
|
||||
|
@ -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),
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user