-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Command to have better time & type hinting
- Loading branch information
1 parent
8c35849
commit 0bc1ca2
Showing
6 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
class RustTime: | ||
|
||
def __init__(self, day_length, sunrise, sunset, time) -> None: | ||
def __init__(self, day_length, sunrise, sunset, time, raw_time) -> None: | ||
|
||
self.day_length = day_length | ||
self.sunrise = sunrise | ||
self.sunset = sunset | ||
self.time = time | ||
self.raw_time = raw_time | ||
|
||
def __str__(self) -> str: | ||
return "RustTime[day_length={}, sunrise={}, sunset={}, time={}]".format(self.day_length, self.sunset, self.sunset, self.time) | ||
return "RustTime[day_length={}, sunrise={}, sunset={}, time={}, raw_time={}]".format(self.day_length, self.sunset, self.sunset, self.time, self.raw_time) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .command_options import CommandOptions | ||
from .command_handler import RustCommandHandler | ||
from .command import Command | ||
from .command import Command, CommandTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters