8000 Migrate from frozendict to immutabledict. · google/python-spanner-orm@f2b80fa · GitHub
[go: up one dir, main page]

Skip to content

Commit f2b80fa

Browse files
committed
Migrate from frozendict to immutabledict.
See slezica/python-frozendict#25.
1 parent c1af04f commit f2b80fa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
packages=['spanner_orm', 'spanner_orm.admin'],
2525
include_package_data=True,
2626
python_requires='~=3.7',
27-
install_requires=['google-cloud-spanner >= 1.6, <2.0.0dev', 'frozendict'],
27+
install_requires=[
28+
'google-cloud-spanner >= 1.6, <2.0.0dev',
29+
'immutabledict',
30+
],
2831
tests_require=['absl-py', 'google-api-core', 'portpicker'],
2932
entry_points={
3033
'console_scripts': ['spanner-orm = spanner_orm.admin.scripts:main']

spanner_orm/condition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
from spanner_orm import index
3030
from spanner_orm import relationship
3131

32-
import frozendict
3332
from google.api_core import datetime_helpers
3433
from google.cloud.spanner_v1.proto import type_pb2
34+
import immutabledict
3535

3636
T = TypeVar('T')
3737

@@ -254,7 +254,7 @@ class ArbitraryCondition(Condition):
254254
def __init__(
255255
self,
256256
sql_template: str,
257-
substitutions: Mapping[str, Substitution] = frozendict.frozendict(),
257+
substitutions: Mapping[str, Substitution] = immutabledict.immutabledict(),
258258
*,
259259
segment: Segment,
260260
):

0 commit comments

Comments
 (0)
0