From 943eb6d87ad778a7ecff9346d3779d52c368d054 Mon Sep 17 00:00:00 2001 From: Nick Frasser <1693461+nfrasser@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:14:12 -0400 Subject: [PATCH 1/2] fix: type issue --- .pre-commit-config.yaml | 4 ++-- cryosparc/dataset.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 01c2ae6b..ea07f035 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,13 +10,13 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.2 + rev: v0.5.6 hooks: - id: ruff args: [--fix, --select, I, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.371 + rev: v1.1.374 hooks: - id: pyright additional_dependencies: [cython, httpretty, numpy, pytest] diff --git a/cryosparc/dataset.py b/cryosparc/dataset.py index b4cb5493..266dcc93 100644 --- a/cryosparc/dataset.py +++ b/cryosparc/dataset.py @@ -717,11 +717,11 @@ def __init__( List[Tuple[str, "ArrayLike"]], Literal[None], ] = 0, - row_class: Type[R] = Row, + row_class=Row, ): # Always initialize with at least a UID field super().__init__() - self._row_class = row_class + self._row_class = row_class # type: ignore self._rows = None if isinstance(allocate, Dataset): From e45b699bd01f8849e6cde2841966bff3618ff1e5 Mon Sep 17 00:00:00 2001 From: Nick Frasser <1693461+nfrasser@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:14:35 -0400 Subject: [PATCH 2/2] v4.5.1 --- cryosparc/__init__.py | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cryosparc/__init__.py b/cryosparc/__init__.py index 7c13af95..2cb74bcf 100644 --- a/cryosparc/__init__.py +++ b/cryosparc/__init__.py @@ -1,4 +1,4 @@ -__version__ = "4.5.0" +__version__ = "4.5.1" def get_include(): diff --git a/pyproject.toml b/pyproject.toml index 979d13f7..ce087d64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cryosparc-tools" -version = "4.5.0" +version = "4.5.1" description = "Toolkit for interfacing with CryoSPARC" readme = "README.md" requires-python = ">=3.7" diff --git a/setup.py b/setup.py index 983413b0..855fd484 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( name="cryosparc_tools", - version="4.5.0", + version="4.5.1", description="Toolkit for interfacing with CryoSPARC", headers=["cryosparc/include/cryosparc-tools/dataset.h"], ext_modules=cythonize(