jetpytools 1.6.1__py3-none-any.whl → 1.6.3__py3-none-any.whl

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.

jetpytools/_metadata.py CHANGED
@@ -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,
@@ -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,18 +1,18 @@
1
1
  jetpytools/__init__.py,sha256=ha_pCOMqfeIbipDRrtqKOqH3NQEpX4KwN2SskpsCGb4,114
2
- jetpytools/_metadata.py,sha256=j_VoxH_nvom77B02JZlgSD__SSnwZxrYlKbVwvxotAk,414
2
+ jetpytools/_metadata.py,sha256=MLRtLNmQhbTjKFrFg3CuoIgiYnOzTZ98Sq9Doddn8ZI,414
3
3
  jetpytools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  jetpytools/enums/__init__.py,sha256=TvEt3TWmnzf2TWS_Gd6llyyXAGDKxdhdJsDgSvT7xys,41
5
5
  jetpytools/enums/base.py,sha256=L5dk6UAsQ3V6GVj0vulKaiJsholnh0Ftyh1FZFM9zwI,2034
6
6
  jetpytools/enums/other.py,sha256=9GGRS4P-P589C1HqNpDDBhLdphID1trwCJi7pbXT0iM,1317
7
7
  jetpytools/exceptions/__init__.py,sha256=0rNEfnOuoSRUyKsutGzHFWQkgiFaK7diOT4VbRVKt9c,105
8
- jetpytools/exceptions/base.py,sha256=Blla807sSqweA9DC821wIZaXIB6Y_YeE7HTkWrQwPBY,5973
8
+ jetpytools/exceptions/base.py,sha256=PACRdPXjbNyDbcM1gT0sHwaRWxSds8dh6CgUZp7RYpg,5939
9
9
  jetpytools/exceptions/enum.py,sha256=euR6cyMetVWSfTgO5rkblhQyEgusdwhx6Rd9I5ZoFbA,293
10
10
  jetpytools/exceptions/file.py,sha256=7Eh4aPo4r1W-ppnf6XLwWaStOSjIxw9JfzOCa4W7m8E,1105
11
11
  jetpytools/exceptions/generic.py,sha256=5LYQHdSLM2wu5fv40PTrjkW9v0iq8R-QlQzhVsiLLpE,1509
12
12
  jetpytools/exceptions/module.py,sha256=hjkpvTPZALRvo1Q5y7D1wEAsssjyRZSZSf98gks3lKw,1231
13
13
  jetpytools/functions/__init__.py,sha256=jCw3-aaOGxIzi6iyFInWPOxOFbzZg8IZhoSuGYaNgLA,67
14
14
  jetpytools/functions/funcs.py,sha256=lcdWaJtslhXZNfNu_y-Badgz2uy0bVaoA3D_lLo_GNI,5286
15
- jetpytools/functions/normalize.py,sha256=MYrlYine8MHcv3l9CPspc9SCAL3RLRR_LYDd10t9Nxk,8594
15
+ jetpytools/functions/normalize.py,sha256=czliT8iyYPdiJG3C7wHppFrOxeVP5OOWZGdRPHFvEi8,8594
16
16
  jetpytools/functions/other.py,sha256=P_NdrtFxR_Sosn9QblU-Ea4mKEyWY7AegQzmiQPSVLk,407
17
17
  jetpytools/types/__init__.py,sha256=oP1cm6LtRpjPXQ0M4JnKH4RkzrBxBPos_xLHaITrgSs,154
18
18
  jetpytools/types/builtins.py,sha256=4uAutpHlkcKM3K_6BbWomqR2QgWNt6294FHE3Ck_ZIA,2067
@@ -27,7 +27,7 @@ jetpytools/utils/file.py,sha256=um4ow7_UEH1UxOV74w6F1u4s0wC4zh98LrcwBYjed50,1057
27
27
  jetpytools/utils/funcs.py,sha256=2qhFyLD0OLvenjzOu2wu1ZWoZGzQ8aPmvbkAI1i9Gvk,914
28
28
  jetpytools/utils/math.py,sha256=I56OeHDDJl3X8EFXMWVEiXGAD16AKcn8KVnFuP5fFes,3445
29
29
  jetpytools/utils/ranges.py,sha256=glxypgmuzauV6KCSNujNHOdWkNEUNylOUAPS618jnIg,2559
30
- jetpytools-1.6.1.dist-info/METADATA,sha256=_yhDYIdUMxObXMO48gDrSb5NPpm7rJqGXypZGCsQAe8,1198
31
- jetpytools-1.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
- jetpytools-1.6.1.dist-info/licenses/LICENSE,sha256=l0PN-qDtXcgOB5aXP_nSUsvCK5V3o9pQCGsTzyZhKL0,1071
33
- jetpytools-1.6.1.dist-info/RECORD,,
30
+ jetpytools-1.6.3.dist-info/METADATA,sha256=FI9PswpOTjuD6AZYSsWx-BVQ7E1OG93b2LXu6_FCKl4,1198
31
+ jetpytools-1.6.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ jetpytools-1.6.3.dist-info/licenses/LICENSE,sha256=l0PN-qDtXcgOB5aXP_nSUsvCK5V3o9pQCGsTzyZhKL0,1071
33
+ jetpytools-1.6.3.dist-info/RECORD,,