From 8265a85434f7e34a48545030bce685a90fc7b5c8 Mon Sep 17 00:00:00 2001 From: Robert Neumann Date: Fri, 10 Feb 2023 21:44:13 +0100 Subject: [PATCH] Code cleanups (#498) --- pynecone/pc.py | 4 ++-- pynecone/state.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pynecone/pc.py b/pynecone/pc.py index 6ac0a81da..49c35ba1e 100644 --- a/pynecone/pc.py +++ b/pynecone/pc.py @@ -141,10 +141,10 @@ def deploy(dry_run: bool = typer.Option(False, help="Whether to run a dry run.") # Upload the frontend and backend. with open(constants.FRONTEND_ZIP, "rb") as f: - response = httpx.put(frontend, data=f) # type: ignore + httpx.put(frontend, data=f) # type: ignore with open(constants.BACKEND_ZIP, "rb") as f: - response = httpx.put(backend, data=f) # type: ignore + httpx.put(backend, data=f) # type: ignore @cli.command() diff --git a/pynecone/state.py b/pynecone/state.py index c9629365e..e5c452e05 100644 --- a/pynecone/state.py +++ b/pynecone/state.py @@ -620,8 +620,8 @@ class State(Base, ABC): k: v.dict(include_computed=include_computed, **kwargs) for k, v in self.substates.items() } - vars = {**base_vars, **computed_vars, **substate_vars} - return {k: vars[k] for k in sorted(vars)} + variables = {**base_vars, **computed_vars, **substate_vars} + return {k: variables[k] for k in sorted(variables)} class DefaultState(State):