Skip to content

Commit df30e1c

Browse files
committed
backwards compatibility to python >=3.7
1 parent e2a6ead commit df30e1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "deterministic_gaussian_sampling"
77
version = "0.1.0"
88
description = "Python library for Localized Distribution (LCD)-based Gaussian sampling."
99
readme = "README.md"
10-
requires-python = ">=3.8"
10+
requires-python = ">=3.7"
1111
authors = [
1212
{ name="Aaron Preus", email="[email protected]" }
1313
]

src/deterministic_gaussian_sampling/approximation/base_approximation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import ctypes
22
import numpy
3+
from typing import Optional
34
from deterministic_gaussian_sampling.dll_handling import load_dll
45

56
class BaseApproximation:
6-
cdll: ctypes.CDLL | None = None
7+
cdll: Optional[ctypes.CDLL] = None
78

89
def __init__(self):
910
if self.cdll is None:

0 commit comments

Comments
 (0)