aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pydantic_example.py
diff options
context:
space:
mode:
authorLouis Burda <dev@sinitax.com>2026-02-28 18:54:19 +0100
committerLouis Burda <dev@sinitax.com>2026-02-28 18:54:19 +0100
commitbe1dd21f8e4fbd5361531b4d8727a0d0d243e8ec (patch)
treee7b540012e0510d1304d2dac8e137545ae103f75 /examples/pydantic_example.py
parentd70a199a72bf9a69eb4a3fcf166b0435918b2e33 (diff)
downloadselectui-main.tar.gz
selectui-main.zip
Add tests and justfileHEADmain
Diffstat (limited to 'examples/pydantic_example.py')
-rwxr-xr-xexamples/pydantic_example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pydantic_example.py b/examples/pydantic_example.py
index 3c80dcb..85d9132 100755
--- a/examples/pydantic_example.py
+++ b/examples/pydantic_example.py
@@ -5,12 +5,12 @@ Example demonstrating SelectUI with Pydantic models.
This shows how to use SelectItem for type safety and validation.
"""
-import sys
import os
+import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
-from selectui import SelectUI, SelectItem
+from selectui import SelectItem, SelectUI
def example_basic_pydantic():