Skip to content

Commit

Permalink
python 3.10 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Nov 5, 2024
1 parent 2d02135 commit 9eab7a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion miniscope_io/models/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
Base ABCs for pipeline classes
"""

import sys
from abc import abstractmethod
from typing import ClassVar, Final, Generic, Self, TypeVar, Union, final
from typing import ClassVar, Final, Generic, TypeVar, Union, final

from pydantic import Field

from miniscope_io.exceptions import ConfigurationMismatchError
from miniscope_io.models.models import MiniscopeConfig, PipelineModel

if sys.version_info < (3, 11):
from typing_extensions import Self
else:
from typing import Self

T = TypeVar("T")
"""
Input Type typevar
Expand Down
2 changes: 1 addition & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies = [
"rich>=13.6.0",
"pyyaml>=6.0.1",
"click>=8.1.7",
"typing-extensions>=4.12.2; python_version<'3.11'",
]

readme = "README.md"
Expand Down Expand Up @@ -119,7 +120,7 @@ omit = [
]

[tool.ruff]
target-version = "py311"
target-version = "py39"
include = ["miniscope_io/**/*.py", "pyproject.toml"]
exclude = ["docs", "tests", "miniscope_io/vendor", "noxfile.py"]
line-length = 100
Expand Down

0 comments on commit 9eab7a3

Please sign in to comment.