Skip to content

Commit cb24d15

Browse files
chore: enable pyright on sync tests (microsoft#1015)
1 parent 9b5e858 commit cb24d15

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

playwright/_impl/_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ async def text(self) -> str:
330330
content = await self.body()
331331
return content.decode()
332332

333-
async def json(self) -> Union[Any]:
333+
async def json(self) -> Any:
334334
return json.loads(await self.text())
335335

336336
@property

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ ignore_errors = true
2929
profile = "black"
3030

3131
[tool.pyright]
32-
include = ["playwright"]
33-
ignore = ["tests/", "scripts/"]
32+
include = ["playwright", "tests/sync"]
33+
ignore = ["tests/async/", "scripts/"]
3434
pythonVersion = "3.7"
3535
reportMissingImports = false
36-
reportTypedDictNotRequiredAccess = false
36+
reportTypedDictNotRequiredAccess = false

tests/sync/test_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import pytest
1919

20-
from playwright._impl._page import Page
20+
from playwright.sync_api import Page
2121

2222

2323
@pytest.mark.only_browser("chromium")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy