jetpytools 1.6.1__tar.gz → 1.6.3__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.1 → jetpytools-1.6.3}/PKG-INFO +1 -1
  2. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/_metadata.py +1 -1
  3. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/exceptions/base.py +1 -1
  4. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/functions/normalize.py +2 -2
  5. {jetpytools-1.6.1 → jetpytools-1.6.3}/.gitignore +0 -0
  6. {jetpytools-1.6.1 → jetpytools-1.6.3}/LICENSE +0 -0
  7. {jetpytools-1.6.1 → jetpytools-1.6.3}/README.md +0 -0
  8. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/__init__.py +0 -0
  9. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/enums/__init__.py +0 -0
  10. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/enums/base.py +0 -0
  11. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/enums/other.py +0 -0
  12. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/exceptions/__init__.py +0 -0
  13. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/exceptions/enum.py +0 -0
  14. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/exceptions/file.py +0 -0
  15. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/exceptions/generic.py +0 -0
  16. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/exceptions/module.py +0 -0
  17. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/functions/__init__.py +0 -0
  18. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/functions/funcs.py +0 -0
  19. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/functions/other.py +0 -0
  20. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/py.typed +0 -0
  21. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/__init__.py +0 -0
  22. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/builtins.py +0 -0
  23. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/check.py +0 -0
  24. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/file.py +0 -0
  25. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/funcs.py +0 -0
  26. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/generic.py +0 -0
  27. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/supports.py +0 -0
  28. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/types/utils.py +0 -0
  29. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/utils/__init__.py +0 -0
  30. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/utils/file.py +0 -0
  31. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/utils/funcs.py +0 -0
  32. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/utils/math.py +0 -0
  33. {jetpytools-1.6.1 → jetpytools-1.6.3}/jetpytools/utils/ranges.py +0 -0
  34. {jetpytools-1.6.1 → jetpytools-1.6.3}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jetpytools
3
- Version: 1.6.1
3
+ Version: 1.6.3
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.1"
3
+ __version__ = "1.6.3"
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__
@@ -34,7 +34,7 @@ class CustomErrorMeta(type):
34
34
  """Custom base exception meta class."""
35
35
 
36
36
  def __new__(cls: type[SelfCErrorMeta], *args: Any) -> SelfCErrorMeta:
37
- return CustomErrorMeta.setup_exception(type.__new__(cls, *args)) # pyright: ignore[reportReturnType]
37
+ return CustomErrorMeta.setup_exception(super().__new__(cls, *args))
38
38
 
39
39
  @staticmethod
40
40
  def setup_exception(exception: SelfCErrorMeta, override: str | ExceptionError | None = None) -> SelfCErrorMeta:
@@ -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