Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
norbcodes committed Sep 22, 2024
1 parent b069098 commit 71a1c53
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "NCapybaraLib"
description = "A small library with a bunch of functions and thingies I made for fun."
authors = [{name="NorbCodes"}]
version = "1.0.0"
version = "1.1.0"
readme = "README.md"
requires-python = ">=3.12"
classifiers = [
Expand Down
1 change: 1 addition & 0 deletions src/NCapybaraLib/All.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from ._internal.init import print_hello_world
from ._internal.init import inject_function
from ._internal.init import clear_console
from ._internal.init import nullish_operator

from .String import *

Expand Down
3 changes: 2 additions & 1 deletion src/NCapybaraLib/Math.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@

from ._internal.Math import get_xy_in_2d_array
from ._internal.Math import get_index_in_2d_array
from ._internal.Math import tetration
from ._internal.Math import tetration
from ._internal.Math import clamp
3 changes: 2 additions & 1 deletion src/NCapybaraLib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@

from ._internal.init import print_hello_world
from ._internal.init import inject_function
from ._internal.init import clear_console
from ._internal.init import clear_console
from ._internal.init import nullish_operator
5 changes: 2 additions & 3 deletions src/NCapybaraLib/_internal/Math.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def clamp(value: int | float, minimum: int, maximum: int) -> int | float:
and yeah that's literally all
"""

# mf366 here saying "fuck abreviating shit"
# mf366 here saying "fuck abbreviating shit"
# "I shall use the correct nerdy terms :nerd:"

if value < minimum:
Expand All @@ -60,5 +60,4 @@ def clamp(value: int | float, minimum: int, maximum: int) -> int | float:
if value > maximum:
return maximum

return value

return value # Simply genius code. <3
3 changes: 1 addition & 2 deletions src/NCapybaraLib/_internal/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,4 @@ def nullish_operator(value: Any, new_value: Any) -> Any:
"""

# yet another contribution from y'allsss buddy MF366
return new_value if value is None else value

return new_value if value is None else value

0 comments on commit 71a1c53

Please sign in to comment.