Skip to content

Commit df6ef1b

Browse files
authored
Merge pull request #38 from botcity-dev/fix/return-type
FIX: fixing the return type of the find_process method
2 parents afe8147 + 7ac49fe commit df6ef1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

botcity/core/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import subprocess
88
import time
99
import webbrowser
10-
from typing import Union, List
10+
from typing import Union
1111

1212

1313
import pyperclip
@@ -446,7 +446,7 @@ def find_text(self, label, x=None, y=None, width=None, height=None, *, threshold
446446
return self.find_until(label, x, y, width, height, threshold=threshold, matching=matching,
447447
waiting_time=waiting_time, best=best, grayscale=True)
448448

449-
def find_process(self, name: str = None, pid: str = None) -> List[Process]:
449+
def find_process(self, name: str = None, pid: str = None) -> Process:
450450
"""
451451
Find a process by name or PID
452452

0 commit comments

Comments
 (0)