Skip to content

Commit

Permalink
Formatting and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Jul 5, 2023
1 parent b5ee2bf commit 24678f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rustplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

__name__ = "rustplus"
__author__ = "olijeffers0n"
__version__ = "5.6.7"
__version__ = "5.6.8"
__support__ = "Discord: https://discord.gg/nQqJe8qvP8"
7 changes: 4 additions & 3 deletions rustplus/utils/rust_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _get_grid_y(y, map_size):

def _number_to_letters(num):
power, mod = divmod(num, 26)
out = chr(64 + mod) if mod else (power, 'Z')
out = chr(64 + mod) if mod else (power, "Z")
return _number_to_letters(power) + out if power else out


Expand All @@ -194,11 +194,12 @@ def _get_corrected_map_size(map_size):


def _is_outside_grid_system(x, y, map_size, offset=0):
return x < -offset or x > (map_size + offset) or y < -offset or y > (map_size + offset)
return (
x < -offset or x > (map_size + offset) or y < -offset or y > (map_size + offset)
)


class HackyBackwardsCompatCoordClass:

def __init__(self, x, y):
self.x = x
self.y = y
Expand Down

0 comments on commit 24678f5

Please sign in to comment.