Skip to content

Commit

Permalink
Bump minimal version of python to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouvignies committed Feb 11, 2024
1 parent bfb2217 commit 4b9e28b
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 176 deletions.
3 changes: 1 addition & 2 deletions chemex/configuration/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from collections.abc import Hashable
from functools import total_ordering
from typing import Annotated, Literal, TypeVar
from typing import Annotated, Literal, Self, TypeVar

from pydantic import (
BaseModel,
Expand All @@ -13,7 +13,6 @@
field_validator,
model_validator,
)
from typing_extensions import Self

from chemex.configuration.utils import key_to_lower, to_lower

Expand Down
3 changes: 1 addition & 2 deletions chemex/containers/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
from dataclasses import dataclass, field
from functools import cached_property
from random import choices
from typing import Any
from typing import Any, Self

import numpy as np
from numpy.typing import NDArray
from typing_extensions import Self

from chemex.typing import ArrayBool, ArrayFloat

Expand Down
2 changes: 1 addition & 1 deletion chemex/containers/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from dataclasses import dataclass, field
from itertools import chain
from pathlib import Path
from typing import Self

import numpy as np
from lmfit import Parameters as ParametersLF
from typing_extensions import Self

from chemex.configuration.methods import Selection
from chemex.containers.profile import Profile
Expand Down
3 changes: 1 addition & 2 deletions chemex/containers/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
from itertools import chain
from pathlib import Path
from random import choices
from typing import Literal
from typing import Literal, Self

import numpy as np
from lmfit.parameter import Parameters
from typing_extensions import Self

from chemex.configuration.methods import Selection
from chemex.containers.experiment import Experiment
Expand Down
2 changes: 1 addition & 1 deletion chemex/containers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from cachetools import LRUCache, cachedmethod
from lmfit import Parameters as ParametersLF
from typing_extensions import Self
from typing import Self

from chemex.containers.data import Data
from chemex.nmr.spectrometer import Spectrometer
Expand Down
2 changes: 1 addition & 1 deletion chemex/parameters/name.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from dataclasses import dataclass, field
from functools import cached_property
from re import Pattern
from typing import Self

from rapidfuzz.process import extractOne
from typing_extensions import Self

from chemex.configuration.conditions import Conditions
from chemex.parameters.spin_system import SpinSystem
Expand Down
3 changes: 1 addition & 2 deletions chemex/parameters/spin_system/spin_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

from collections.abc import Hashable, Iterable, Sequence
from functools import cache, cached_property, total_ordering
from typing import TYPE_CHECKING, Any, Literal
from typing import TYPE_CHECKING, Any, Literal, Self

from pydantic import BaseModel, Field, InstanceOf, computed_field, model_validator
from typing_extensions import Self

from chemex.parameters.spin_system.atom import Atom
from chemex.parameters.spin_system.group import Group
Expand Down
254 changes: 92 additions & 162 deletions pdm.lock

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
"pydantic>=2.4.2",
"cachetools>=5.3.2",
"rich>=13.6.0",
"tomli>=2.0.1",
"rapidfuzz>=3.4.0",
"emcee>=3.1.4",
"typing-extensions>=4.9.0",
"numdifftools>=0.9.41",
"annotated-types>=0.6.0",
]
requires-python = ">=3.10,<3.13"
requires-python = ">=3.11,<3.13"
readme = "README.md"
license = { text = "GPL-3.0-or-later" }
dynamic = [ "version" ]
Expand Down

0 comments on commit 4b9e28b

Please sign in to comment.