persidict 0.35.0__tar.gz → 0.36.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of persidict might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: persidict
3
- Version: 0.35.0
3
+ Version: 0.36.0
4
4
  Summary: Simple persistent key-value store for Python. Values are stored as files on a disk or as S3 objects on AWS cloud.
5
5
  Keywords: persistence,dicts,distributed,parallel
6
6
  Author: Vlad (Volodymyr) Pavlov
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "persidict"
7
- version = "0.35.0"
7
+ version = "0.36.0"
8
8
  description = "Simple persistent key-value store for Python. Values are stored as files on a disk or as S3 objects on AWS cloud."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
Binary file
@@ -32,7 +32,7 @@ class Joker(ParameterizableClass):
32
32
  Returns:
33
33
  Joker: The singleton instance for the subclass when instantiated.
34
34
  """
35
- _instances = {}
35
+ _instances: dict[type, "Joker"] = {}
36
36
 
37
37
  def get_params(self) -> dict[str, Any]:
38
38
  """Return parameters for parameterizable API.
@@ -1,3 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Any, Dict, Type
4
+
1
5
  from .persi_dict import PersiDict
2
6
 
3
7
  class OverlappingMultiDict:
@@ -26,10 +30,10 @@ class OverlappingMultiDict:
26
30
  TypeError: If pickling is attempted or item access is used on the
27
31
  OverlappingMultiDict itself rather than its sub-dicts.
28
32
  """
29
- def __init__(self
30
- , dict_type:type
31
- , shared_subdicts_params:dict
32
- , **individual_subdicts_params):
33
+ def __init__(self,
34
+ dict_type: type[PersiDict],
35
+ shared_subdicts_params: dict[str, Any],
36
+ **individual_subdicts_params: dict[str, Any]) -> None:
33
37
  """Initialize the container and create sub-dictionaries.
34
38
 
35
39
  Args:
File without changes