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
2 changes: 1 addition & 1 deletion playwright/_impl/_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ async def text(self) -> str:
content = await self.body()
return content.decode()

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

@property
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ignore_errors = true
profile = "black"

[tool.pyright]
include = ["playwright"]
ignore = ["tests/", "scripts/"]
include = ["playwright", "tests/sync"]
ignore = ["tests/async/", "scripts/"]
pythonVersion = "3.7"
reportMissingImports = false
reportTypedDictNotRequiredAccess = false
reportTypedDictNotRequiredAccess = false
2 changes: 1 addition & 1 deletion tests/sync/test_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import pytest

from playwright._impl._page import Page
from playwright.sync_api import Page


@pytest.mark.only_browser("chromium")
Expand Down