Mercurial > hg
view contrib/chg/procutil.h @ 48284:9de0823705b4
typing: add more type hints to the errors module
These were found by looking for `Any` types in the generated `*.pyi` file after
running the tests. There are some more complicated types that I'm not sure of,
and am leaving untyped. I also can't figure out how to get `self.hint` to be
anything other than `Any` in most classes.
Differential Revision: https://phab.mercurial-scm.org/D11719
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 23 Oct 2021 17:13:57 -0400 |
parents | ac5527021097 |
children |
line wrap: on
line source
/* * Utilities about process handling - signal and subprocess (ex. pager) * * Copyright (c) 2011 Yuya Nishihara <yuya@tcha.org> * * This software may be used and distributed according to the terms of the * GNU General Public License version 2 or any later version. */ #ifndef PROCUTIL_H_ #define PROCUTIL_H_ #include <unistd.h> void restoresignalhandler(void); void setupsignalhandler(pid_t pid, pid_t pgid); pid_t setuppager(const char *pagercmd, const char *envp[]); void waitpager(void); #endif /* PROCUTIL_H_ */