Skip to content

Commit

Permalink
fix: correct call of Optional in Python widget (#292)
Browse files Browse the repository at this point in the history
* fix: correct call of Options

* Bump required python version

* Add missing import
  • Loading branch information
domoritz authored Feb 12, 2024
1 parent b3907fd commit 475a79d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/duckdb-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "mosaic-server"
description = "A DuckDB server for Mosaic"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"diskcache",
"duckdb==0.8.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/widget/mosaic_widget/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations

import logging
import pathlib
import time
from typing import Optional

import anywidget
import duckdb
Expand Down Expand Up @@ -41,7 +42,7 @@ class MosaicWidget(anywidget.AnyWidget):

def __init__(
self,
spec: Optional(dict) = None,
spec: dict | None = None,
con=None,
temp_indexes=True,
data=None,
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "mosaic-widget"
description = "A Jupyter widget for Mosaic"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"anywidget>=0.9.0",
"duckdb==0.8.1",
Expand Down

0 comments on commit 475a79d

Please sign in to comment.