Skip to content

Commit bef7ecc

Browse files
committed
fix(spp): support Python 3.9+ by removing 3.10 type union syntax
Remove `str | None` and `str | list` type annotations that require Python 3.10+. The spp CLI now works on Python 3.9+.
1 parent 1e3cf6b commit bef7ecc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ DEMO_PROFILES = {
140140
}
141141

142142

143-
def run(cmd: str | list, check: bool = True, capture: bool = False, **kwargs) -> subprocess.CompletedProcess:
143+
def run(cmd, check: bool = True, capture: bool = False, **kwargs) -> subprocess.CompletedProcess:
144144
"""Run a command with nice defaults."""
145145
if isinstance(cmd, str):
146146
kwargs.setdefault("shell", True)
@@ -918,7 +918,7 @@ def cmd_sql(args):
918918
run(docker_compose("exec", "db", "psql", "-U", "odoo", "-d", db_name))
919919

920920

921-
def _show_url(open_browser: bool = False) -> str | None:
921+
def _show_url(open_browser: bool = False):
922922
"""Get the running Odoo server URL."""
923923
service, profile = _find_running_odoo()
924924
if not service:

0 commit comments

Comments
 (0)