Fix type annotations and docs.

This commit is contained in:
Jan Petykiewicz 2017-06-21 01:45:39 -07:00
commit a13e622f7a
3 changed files with 4 additions and 5 deletions

View file

@ -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))