forked from jan/mem_edit
Fix type annotations and docs.
This commit is contained in:
parent
61289a6858
commit
a13e622f7a
3 changed files with 4 additions and 5 deletions
|
|
@ -193,7 +193,7 @@ class Process(AbstractProcess):
|
|||
return pids[:num_returned]
|
||||
|
||||
@staticmethod
|
||||
def get_pid_by_name(target_name: str) -> int:
|
||||
def get_pid_by_name(target_name: str) -> int or None:
|
||||
for pid in Process.list_available_pids():
|
||||
try:
|
||||
logger.info('Checking name for pid {}'.format(pid))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue