File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ version = "0"
99authors = [" Corridor Platforms <postmaster@corridorplatforms.com>" ]
1010license = " Apache-2.0, BSD-3-Clause"
1111readme = " docs/README.md"
12- packages = [{include = " sqlalchemy_history" }]
12+ packages = [{ include = " sqlalchemy_history" }]
1313repository = " https://github.com/corridor/sqlalchemy-history"
14- classifiers = [
14+ classifiers = [
1515 " Intended Audience :: Developers" ,
1616 " Operating System :: OS Independent" ,
1717 " Programming Language :: Python" ,
@@ -24,7 +24,6 @@ python = "^3.9"
2424
2525SQLAlchemy = " >=2"
2626SQLAlchemy-Utils = " >=0.30.12"
27- cached-property = " *"
2827
2928[tool .poetry .group .dev .dependencies ]
3029ruff = " *"
Original file line number Diff line number Diff line change 11import sqlalchemy as sa
2- from cached_property import cached_property
3-
2+ import functools
43from sqlalchemy_history .reverter import Reverter
54from sqlalchemy_history .utils import (
65 get_versioning_manager ,
109
1110
1211class VersionClassBase (object ):
13- @cached_property
12+ @functools . cached_property
1413 def previous (self ):
1514 """Returns the previous version relative to this version in the version
1615 history. If current version is the first version this method returns
@@ -20,7 +19,7 @@ def previous(self):
2019 """
2120 return get_versioning_manager (self ).fetcher (parent_class (self .__class__ )).previous (self )
2221
23- @cached_property
22+ @functools . cached_property
2423 def next (self ):
2524 """Returns the next version relative to this version in the version
2625 history. If current version is the last version this method returns
@@ -30,7 +29,7 @@ def next(self):
3029 """
3130 return get_versioning_manager (self ).fetcher (parent_class (self .__class__ )).next (self )
3231
33- @cached_property
32+ @functools . cached_property
3433 def index (self ):
3534 """ """
3635 return get_versioning_manager (self ).fetcher (parent_class (self .__class__ )).index (self )
You can’t perform that action at this time.
0 commit comments