Skip to content

Commit

Permalink
Older python support
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanSteinberg committed Aug 16, 2024
1 parent 423f096 commit 0218fb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meds_reader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import sys
import warnings
from multiprocessing.context import SpawnProcess
from typing import Any, Callable, Iterator, List, Optional, Sequence, Tuple, TypeVar, cast
from typing import Any, Callable, Iterator, List, Optional, Sequence, Tuple, TypeVar, Union, cast

import numpy as np
import pandas as pd
Expand All @@ -27,7 +27,7 @@

A = TypeVar("A")

WorkEntry = Tuple[bytes, np.ndarray | pd.DataFrame]
WorkEntry = Tuple[bytes, Union[np.ndarray, pd.DataFrame]]

mp = multiprocessing.get_context("spawn")

Expand Down
2 changes: 2 additions & 0 deletions tests/api_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import datetime
import json
import os
Expand Down

0 comments on commit 0218fb5

Please sign in to comment.