Skip to content

Commit 23fe701

Browse files
authored
chore: bump dev dependencies (#1108)
1 parent c16481b commit 23fe701

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.0.1
5+
rev: v4.1.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -14,20 +14,20 @@ repos:
1414
- id: check-executables-have-shebangs
1515
- id: check-merge-conflict
1616
- repo: https://github.com/psf/black
17-
rev: 21.9b0
17+
rev: 21.12b0
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/pre-commit/mirrors-mypy
21-
rev: v0.910-1
21+
rev: v0.931
2222
hooks:
2323
- id: mypy
24-
additional_dependencies: [types-pyOpenSSL==20.0.6]
24+
additional_dependencies: [types-pyOpenSSL==21.0.3]
2525
- repo: https://github.com/pycqa/flake8
2626
rev: 4.0.1
2727
hooks:
2828
- id: flake8
2929
- repo: https://github.com/pycqa/isort
30-
rev: 5.9.3
30+
rev: 5.10.1
3131
hooks:
3232
- id: isort
3333
- repo: local
@@ -38,4 +38,4 @@ repos:
3838
language: node
3939
pass_filenames: false
4040
types: [python]
41-
additional_dependencies: ["pyright@1.1.181"]
41+
additional_dependencies: ["pyright@1.1.210"]

local-requirements.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
auditwheel==5.0.0
2-
autobahn==21.3.1
3-
black==21.9b0
4-
flake8==3.9.2
1+
auditwheel==5.1.2
2+
autobahn==21.11.1
3+
black==21.12b0
4+
flake8==4.0.1
55
flaky==3.7.0
6-
mypy==0.910
6+
mypy==0.931
77
objgraph==3.5.0
88
Pillow==9.0.0
9-
pixelmatch==0.2.3
10-
pre-commit==2.15.0
11-
pyOpenSSL==20.0.1
9+
pixelmatch==0.2.4
10+
pre-commit==2.16.0
11+
pyOpenSSL==21.0.0
1212
pytest==6.2.5
13-
pytest-asyncio==0.15.1
14-
pytest-cov==2.12.1
13+
pytest-asyncio==0.17.1
14+
pytest-cov==3.0.0
1515
pytest-repeat==0.9.1
1616
pytest-sugar==0.9.4
17-
pytest-timeout==1.4.2
18-
pytest-xdist==2.4.0
19-
requests==2.26.0
17+
pytest-timeout==2.0.2
18+
pytest-xdist==2.5.0
19+
requests==2.27.1
2020
service_identity==21.1.0
21-
setuptools==58.1.0
22-
twine==3.4.2
21+
setuptools==60.5.0
22+
twine==3.7.1
2323
twisted==21.7.0
24-
types-pyOpenSSL==20.0.6
25-
wheel==0.37.0
24+
types-pyOpenSSL==21.0.3
25+
wheel==0.37.1

playwright/_impl/_impl_to_api_mapping.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
# limitations under the License.
1414

1515
import inspect
16-
from types import MethodType
17-
from typing import Any, Callable, Dict, List, Optional, cast
16+
from typing import Any, Callable, Dict, List, Optional
1817

1918
from playwright._impl._api_types import Error
2019

@@ -91,13 +90,11 @@ def wrapper_func(*args: Any) -> Any:
9190
)
9291

9392
if inspect.ismethod(handler):
94-
wrapper = getattr(
95-
cast(MethodType, handler).__self__, IMPL_ATTR + handler.__name__, None
96-
)
93+
wrapper = getattr(handler.__self__, IMPL_ATTR + handler.__name__, None)
9794
if not wrapper:
9895
wrapper = wrapper_func
9996
setattr(
100-
cast(MethodType, handler).__self__,
97+
handler.__self__,
10198
IMPL_ATTR + handler.__name__,
10299
wrapper,
103100
)

playwright/_impl/_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def expect_event(
388388
timeout = cast(Any, self._parent)._timeout_settings.timeout()
389389
wait_helper = WaitHelper(self, f"web_socket.expect_event({event})")
390390
wait_helper.reject_on_timeout(
391-
timeout, f'Timeout while waiting for event "{event}"'
391+
cast(float, timeout), f'Timeout while waiting for event "{event}"'
392392
)
393393
if event != WebSocket.Events.Close:
394394
wait_helper.reject_on_event(

tests/sync/test_accessibility.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from typing import Any, Dict
16+
1517
import pytest
1618

1719
from playwright.sync_api import Page
@@ -220,6 +222,7 @@ def test_accessibility_filtering_children_of_leaf_nodes_rich_text_editable_field
220222
Edit this image: <img src="fakeimage.png" alt="my fake image">
221223
</div>"""
222224
)
225+
golden: Dict[str, Any]
223226
if is_firefox:
224227
golden = {
225228
"role": "textbox",

0 commit comments

Comments
 (0)