Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dev #686

Merged
merged 5 commits into from
Mar 12, 2023
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 databases/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TODO: merge with other dev requirements
coverage==7.1.0
coverage==7.2.1
syrupy==3.0.6
dirty-equals==0.5.0
distro
Expand Down
2 changes: 1 addition & 1 deletion pipelines/requirements/coverage.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
coverage==7.1.0
coverage==7.2.1
2 changes: 1 addition & 1 deletion pipelines/requirements/deps/pyright.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyright==1.1.291
pyright==1.1.298
2 changes: 1 addition & 1 deletion pipelines/requirements/deps/pytest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest==7.2.1
pytest==7.2.2
2 changes: 1 addition & 1 deletion pipelines/requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs==1.4.2
mkdocs-material==9.0.9
mkdocs-material==9.1.2
2 changes: 1 addition & 1 deletion pipelines/requirements/lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
-r ../../databases/requirements.txt
interrogate==1.5.0
mypy==1.0.1
slotscheck==0.16.4
slotscheck==0.16.5
2 changes: 1 addition & 1 deletion src/prisma/cli/commands/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _cli() -> None:
# for some reason. Fixing the errors for one type checker causes errors in an another
# so just switch to Any for the time being as this is internal and only used once, directly
# below this line.
cli = cast(Any, _cli)
cli: Any = cast(Any, _cli)


@cli.command() # type: ignore[misc]
Expand Down
3 changes: 1 addition & 2 deletions src/prisma/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def _on_request(self, request: jsonrpc.Request) -> None:
f'JSON RPC received unexpected method: {request.method}'
)

if response is not None:
jsonrpc.reply(response)
jsonrpc.reply(response)

@cached_property
def data_class(self) -> Type[BaseModelT]:
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def pytest_sessionstart(session: pytest.Session) -> None:


def pytest_sessionfinish(session: pytest.Session) -> None:
if LOGGING_CONTEXT_MANAGER is not None: # pragma: no branch
if ( # pragma: no branch
LOGGING_CONTEXT_MANAGER is not None
): # pyright: ignore[reportUnnecessaryComparison]
LOGGING_CONTEXT_MANAGER.__exit__(None, None, None)


Expand Down