Skip to content

Commit

Permalink
undo auto formatter and lang typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BluCobalt authored and mindstorm38 committed Mar 24, 2024
1 parent 2f1a4a4 commit 235f059
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion portablemc/cli/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get(key: str, **kwargs) -> str:
"args.start.version.comp.release": "Start the latest release (default).",
"args.start.version.comp.snapshot": "Start the latest snapshot.",
"args.start.version.comp.fabric": "Start Fabric mod loader with latest release.",
"args.start.version.comp.legacyfabric": "Start LegacyFabric mod loader with latest release.",
"args.start.version.comp.legacyfabric": "Start (legacy) Fabric mod loader with latest release.",
"args.start.version.comp.quilt": "Start Quilt mod loader with latest release.",
"args.start.version.comp.forge": "Start Forge mod loader with latest release.",
"args.start.version.comp.neoforge": "Start NeoForge mod loader with latest release.",
Expand Down
19 changes: 9 additions & 10 deletions portablemc/fabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def request_fabric_loader_versions(self) -> Iterator[str]:
class FabricVersion(Version):

def __init__(self, api: FabricApi, vanilla_version: str, loader_version: Optional[str],
prefix: str, *,
context: Optional[Context] = None,
) -> None:
prefix: str, *,
context: Optional[Context] = None,
) -> None:

super().__init__("", context=context) # Do not give a root version for now.

Expand All @@ -55,18 +55,18 @@ def __init__(self, api: FabricApi, vanilla_version: str, loader_version: Optiona

@classmethod
def with_fabric(cls, vanilla_version: str = "release", loader_version: Optional[str] = None, *,
context: Optional[Context] = None,
prefix: str = "fabric"
) -> "FabricVersion":
context: Optional[Context] = None,
prefix: str = "fabric"
) -> "FabricVersion":
"""Construct a root for resolving a Fabric version.
"""
return cls(FABRIC_API, vanilla_version, loader_version, prefix, context=context)

@classmethod
def with_quilt(cls, vanilla_version: str = "release", loader_version: Optional[str] = None, *,
context: Optional[Context] = None,
prefix: str = "quilt"
) -> "FabricVersion":
context: Optional[Context] = None,
prefix: str = "quilt"
) -> "FabricVersion":
"""Construct a root for resolving a Quilt version.
"""
return cls(QUILT_API, vanilla_version, loader_version, prefix, context=context)
Expand Down Expand Up @@ -134,7 +134,6 @@ class FabricResolveEvent:
"""Event triggered when the loader version is missing and is being resolved.
"""
__slots__ = "api", "vanilla_version", "loader_version"

def __init__(self, api: FabricApi, vanilla_version: str, loader_version: Optional[str]) -> None:
self.api = api
self.vanilla_version = vanilla_version
Expand Down

0 comments on commit 235f059

Please sign in to comment.