diff --git a/rustplus/rust_api.py b/rustplus/rust_api.py index b10ce9f..3937642 100644 --- a/rustplus/rust_api.py +++ b/rustplus/rust_api.py @@ -36,7 +36,9 @@ translate_id_to_stack, generate_grid, fetch_avatar_icon, - format_coord, convert_marker, convert_monument + format_coord, + convert_marker, + convert_monument, ) from .remote.ratelimiter import RateLimiter @@ -213,9 +215,7 @@ async def get_markers(self) -> Union[List[RustMarker], None]: if response is None: return None - return [ - RustMarker(marker) for marker in response.response.map_markers.markers - ] + return [RustMarker(marker) for marker in response.response.map_markers.markers] async def get_map( self, @@ -262,7 +262,9 @@ async def get_map( self.logger.error(f"Error opening image: {e}") return None - output = output.crop((500, 500, map_packet.height - 500, map_packet.width - 500)) + output = output.crop( + (500, 500, map_packet.height - 500, map_packet.width - 500) + ) output = output.resize((map_size, map_size), Image.LANCZOS).convert("RGBA") if add_grid: diff --git a/rustplus/utils/__init__.py b/rustplus/utils/__init__.py index 18cc8bb..4892157 100644 --- a/rustplus/utils/__init__.py +++ b/rustplus/utils/__init__.py @@ -1,4 +1,12 @@ from .deprecated import deprecated -from .utils import convert_time, generate_grid, fetch_avatar_icon, format_coord, convert_marker, convert_monument, convert_event_type_to_name +from .utils import ( + convert_time, + generate_grid, + fetch_avatar_icon, + format_coord, + convert_marker, + convert_monument, + convert_event_type_to_name, +) from .grab_items import translate_stack_to_id, translate_id_to_stack from .yielding_event import YieldingEvent diff --git a/rustplus/utils/utils.py b/rustplus/utils/utils.py index de9f4f4..7680e3d 100644 --- a/rustplus/utils/utils.py +++ b/rustplus/utils/utils.py @@ -216,7 +216,9 @@ def convert_monument(name: str, override_images: Dict[str, Image.Image]) -> Imag with resources.path(ICONS_PATH, "swamp.png") as path: icon = Image.open(path).convert("RGBA") else: - logging.getLogger("rustplus.py").info(f"{name} - Has no icon, report this as an issue") + logging.getLogger("rustplus.py").info( + f"{name} - Has no icon, report this as an issue" + ) with resources.path(ICONS_PATH, "icon.png") as path: icon = Image.open(path).convert("RGBA")