Skip to content

Commit

Permalink
tiny cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Jun 6, 2021
1 parent 48c3d1f commit 27ee156
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ class Item():
zora_credit_text = None
fluteboy_credit_text = None

def __init__(self, name: str, advancement: bool, code: int, player: int):
def __init__(self, name: str, advancement: bool, code: Optional[int], player: int):
self.name = name
self.advancement = advancement
self.player = player
Expand Down
2 changes: 0 additions & 2 deletions FactorioClientGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ def __init__(self, *loggers_to_handle, **kwargs):
def on_log(self, record: logging.LogRecord) -> None:
self.data.append({"text": record.getMessage()})

def update_text_width(self, *_):
self.message.text_size = (self.message.width * 0.9, None)

class E(ExceptionHandler):
def handle_exception(self, inst):
Expand Down

0 comments on commit 27ee156

Please sign in to comment.