smoothapi-py 1.2.0__tar.gz → 1.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: smoothapi-py
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: API protection library — exponential backoff and circuit breaker
5
5
  License: MIT
6
6
  License-File: LICENSE
Binary file
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "smoothapi-py"
7
- version = "1.2.0"
7
+ version = "1.2.1"
8
8
  description = "API protection library — exponential backoff and circuit breaker"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -139,6 +139,11 @@ def smooth_api(config: SmoothConfig):
139
139
  return wrapper
140
140
 
141
141
  else:
142
+ if deduplicator is not None:
143
+ import warnings
144
+ # Sync deduplication requires a thread-safe lock manager, which is currently unsupported
145
+ warnings.warn("Synchronous deduplication is not supported. Deduplication will be ignored for this function.", UserWarning, stacklevel=2)
146
+
142
147
  @functools.wraps(fn)
143
148
  def wrapper(*args, **kwargs): # type: ignore[misc]
144
149
  fallback = kwargs.pop('fallback', config.fallback)
File without changes
File without changes
File without changes