Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions local-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ build==1.3.0
flake8==7.2.0
mypy==1.17.1
objgraph==3.6.2
Pillow==11.2.1
Pillow==11.3.0
pixelmatch==0.3.0
pre-commit==3.5.0
pyOpenSSL==25.1.0
pytest==8.4.1
pytest-asyncio==1.1.0
pytest-cov==6.2.1
pytest-cov==6.3.0
pytest-repeat==0.9.4
pytest-rerunfailures==15.1
pytest-timeout==2.4.0
Expand Down
3 changes: 3 additions & 0 deletions scripts/documentation_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import json
import pathlib
import re
import subprocess
from sys import stderr
Expand Down Expand Up @@ -359,6 +360,8 @@ def serialize_python_type(self, value: Any, direction: str) -> str:
match = re.match(r"^<class '((?:pathlib\.)?\w+)'>$", str_value)
if match:
return match.group(1)
if str_value == str(pathlib.Path):
return "pathlib.Path"
match = re.match(
r"playwright._impl._event_context_manager.EventContextManagerImpl\[playwright._impl.[^.]+.(.*)\]",
str_value,
Expand Down
1 change: 1 addition & 0 deletions scripts/generate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@

def process_type(value: Any, param: bool = False) -> str:
value = str(value)
value = re.sub("pathlib._local.Path", "pathlib.Path", value)
value = re.sub(r"<class '([^']+)'>", r"\1", value)
value = re.sub(r"NoneType", "None", value)
value = re.sub(r"playwright\._impl\._api_structures.([\w]+)", r"\1", value)
Expand Down
Loading