jetpytools 1.6.0__tar.gz → 1.6.2__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 jetpytools might be problematic. Click here for more details.

Files changed (34) hide show
  1. {jetpytools-1.6.0 → jetpytools-1.6.2}/PKG-INFO +1 -1
  2. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/_metadata.py +1 -1
  3. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/functions/normalize.py +3 -3
  4. {jetpytools-1.6.0 → jetpytools-1.6.2}/.gitignore +0 -0
  5. {jetpytools-1.6.0 → jetpytools-1.6.2}/LICENSE +0 -0
  6. {jetpytools-1.6.0 → jetpytools-1.6.2}/README.md +0 -0
  7. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/__init__.py +0 -0
  8. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/enums/__init__.py +0 -0
  9. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/enums/base.py +0 -0
  10. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/enums/other.py +0 -0
  11. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/exceptions/__init__.py +0 -0
  12. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/exceptions/base.py +0 -0
  13. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/exceptions/enum.py +0 -0
  14. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/exceptions/file.py +0 -0
  15. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/exceptions/generic.py +0 -0
  16. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/exceptions/module.py +0 -0
  17. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/functions/__init__.py +0 -0
  18. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/functions/funcs.py +0 -0
  19. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/functions/other.py +0 -0
  20. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/py.typed +0 -0
  21. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/__init__.py +0 -0
  22. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/builtins.py +0 -0
  23. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/check.py +0 -0
  24. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/file.py +0 -0
  25. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/funcs.py +0 -0
  26. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/generic.py +0 -0
  27. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/supports.py +0 -0
  28. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/types/utils.py +0 -0
  29. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/utils/__init__.py +0 -0
  30. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/utils/file.py +0 -0
  31. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/utils/funcs.py +0 -0
  32. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/utils/math.py +0 -0
  33. {jetpytools-1.6.0 → jetpytools-1.6.2}/jetpytools/utils/ranges.py +0 -0
  34. {jetpytools-1.6.0 → jetpytools-1.6.2}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jetpytools
3
- Version: 1.6.0
3
+ Version: 1.6.2
4
4
  Summary: Collection of stuff that's useful in general python programming
5
5
  Project-URL: Source Code, https://github.com/Jaded-Encoding-Thaumaturgy/jetpytools
6
6
  Project-URL: Contact, https://discord.gg/XTpc6Fa9eB
@@ -1,6 +1,6 @@
1
1
  """Collection of stuff that's useful in general python programming"""
2
2
 
3
- __version__ = "1.6.0"
3
+ __version__ = "1.6.2"
4
4
 
5
5
  __author_name__, __author_email__ = "Jaded Encoding Thaumaturgy", "jaded.encoding.thaumaturgy@gmail.com"
6
6
  __maintainer_name__, __maintainer_email__ = __author_name__, __author_email__
@@ -123,7 +123,7 @@ def normalize_list_to_ranges(flist: Iterable[int], min_length: int = 0, exclusiv
123
123
  for n in sorted(set(flist)):
124
124
  if prev_n + 1 != n and flist3:
125
125
  flist2.append(flist3)
126
- flist3.clear()
126
+ flist3 = []
127
127
  flist3.append(n)
128
128
  prev_n = n
129
129
 
@@ -207,7 +207,7 @@ def normalize_ranges(
207
207
  if any(
208
208
  [
209
209
  start < 0 and end < 0,
210
- start >= length and end - (not exclusive) > length,
210
+ start >= length and end + (not exclusive) > length,
211
211
  start >= end + (not exclusive),
212
212
  ]
213
213
  ):
@@ -225,7 +225,7 @@ def normalize_ranges(
225
225
  )
226
226
  exceptions.append(exception)
227
227
  continue
228
- if end - (not exclusive) > length:
228
+ if end + (not exclusive) > length:
229
229
  exception = CustomOverflowError(
230
230
  f"End frame `{end}` in range `{r}` with length `{length}` could not be normalized!",
231
231
  normalize_ranges,
File without changes
File without changes
File without changes
File without changes