Skip to content

Commit 5a19922

Browse files
committed
specify typing import for wpewebkit service
1 parent cde43bc commit 5a19922

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

py/selenium/webdriver/wpewebkit/service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
import shutil
18-
import typing
18+
from typing import Optional, List, Mapping
1919

2020
from selenium.webdriver.common import service
2121

@@ -37,9 +37,9 @@ def __init__(
3737
self,
3838
executable_path: str = DEFAULT_EXECUTABLE_PATH,
3939
port: int = 0,
40-
log_output: typing.Optional[str] = None,
41-
service_args: typing.Optional[typing.List[str]] = None,
42-
env: typing.Optional[typing.Mapping[str, str]] = None,
40+
log_output: Optional[str] = None,
41+
service_args: Optional[List[str]] = None,
42+
env: Optional[Mapping[str, str]] = None,
4343
**kwargs,
4444
):
4545
self.service_args = service_args or []
@@ -51,5 +51,5 @@ def __init__(
5151
**kwargs,
5252
)
5353

54-
def command_line_args(self) -> typing.List[str]:
54+
def command_line_args(self) -> List[str]:
5555
return ["-p", f"{self.port}"] + self.service_args

0 commit comments

Comments
 (0)