From 2fe281c3c813ac6091e3ddd7ea36d629978a9681 Mon Sep 17 00:00:00 2001 From: Justin Bennett Date: Mon, 17 Feb 2025 12:40:08 -0500 Subject: [PATCH] Fixup last import bits to get the example working --- .../python/src/webview_python/__init__.py | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/clients/python/src/webview_python/__init__.py b/src/clients/python/src/webview_python/__init__.py index dee5172..ae9083a 100644 --- a/src/clients/python/src/webview_python/__init__.py +++ b/src/clients/python/src/webview_python/__init__.py @@ -10,6 +10,17 @@ import msgspec import sys +__all__ = [ + "WebViewMessage", + "WebViewRequest", + "WebViewOptions", + "WebViewContentHtml", + "WebViewContentUrl", + "WebViewNotification", + "WebViewResponse", + "IpcNotification", +] + # Import schemas from .schemas.WebViewMessage import ( NotificationMessage, @@ -25,10 +36,11 @@ ErrResponse, Response as WebViewResponse, Notification as WebViewNotification, - WebViewMessage, + Message as WebViewMessage, + IpcNotification, ) from .schemas.WebViewRequest import ( - WebViewRequest, + Request as WebViewRequest, GetVersionRequest, EvalRequest, SetTitleRequest, @@ -46,9 +58,9 @@ Size, ) from .schemas.WebViewOptions import ( - WebViewOptions, - WebViewContentHtml, - WebViewContentUrl, + Options as WebViewOptions, + ContentHtml as WebViewContentHtml, + ContentUrl as WebViewContentUrl, ) # Constants