diff --git a/colour_datasets/loaders/labsphere2019.py b/colour_datasets/loaders/labsphere2019.py index 2f57d3c..c31eac9 100644 --- a/colour_datasets/loaders/labsphere2019.py +++ b/colour_datasets/loaders/labsphere2019.py @@ -14,11 +14,13 @@ doi:10.5281/zenodo.3245875 """ +from __future__ import annotations + import os import numpy as np from colour import SpectralDistribution -from colour.hints import Dict, Optional +from colour.hints import Dict from colour.utilities import tsplit from colour_datasets.loaders import AbstractDatasetLoader @@ -95,7 +97,7 @@ def load(self) -> Dict[str, SpectralDistribution]: return self._content -_DATASET_LOADER_LABSPHERE2019: Optional[DatasetLoader_Labsphere2019] = None +_DATASET_LOADER_LABSPHERE2019: DatasetLoader_Labsphere2019 | None = None """ Singleton instance of the *Labsphere (2019)* *Labsphere SRS-99-020* dataset loader. diff --git a/pyproject.toml b/pyproject.toml index facfa47..f4940d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,7 +129,7 @@ reportUnusedExpression = false addopts = "--durations=5" [tool.ruff] -target-version = "py39" +target-version = "py310" line-length = 88 select = [ "A", # flake8-builtins @@ -206,6 +206,7 @@ ignore = [ "RET508", "TRY003", "TRY300", + "UP038", ] typing-modules = ["colour.hints"] fixable = ["B", "C", "E", "F", "PIE", "RUF", "SIM", "UP", "W"]