Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Sep 15, 2023
1 parent 48418fe commit 7177cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/reactpy_django/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def use_origin() -> str | None:
)
return f"{scope['scheme']}://{host}" if host else None
except Exception:
return None
_logger.info("Failed to get origin")
return None


def use_scope() -> dict[str, Any]:
Expand Down
2 changes: 1 addition & 1 deletion src/reactpy_django/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ComponentWebsocket:
dotted_path: str


Connection = _Connection[ComponentWebsocket | HttpRequest]
Connection = _Connection[Union[ComponentWebsocket, HttpRequest]]


@dataclass
Expand Down

0 comments on commit 7177cfe

Please sign in to comment.