Skip to content

Commit cdbc010

Browse files
Fix sendspin serve crash on Python 3.12 (#252)
`sendspin serve` raised `TypeError: type 'Synchronized' is not subscriptable` at import time on Python 3.12 because `multiprocessing.sharedctypes.Synchronized[int]` only gained `__class_getitem__` in 3.13.
1 parent 2bc1d67 commit cdbc010

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sendspin/serve/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Custom SendspinServer with embedded web player."""
22

3+
from __future__ import annotations
4+
35
from importlib.resources import files
46
from multiprocessing.sharedctypes import Synchronized
57
from pathlib import Path

0 commit comments

Comments
 (0)