Skip to content

Commit

Permalink
Drop type hints to support fucking python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
robertopreste committed Apr 9, 2019
1 parent bdf7678 commit 39d9ee2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lunchtime/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
import random
import string
import time
from typing import Optional


def _crazy_out(command: str) -> str:
def _crazy_out(command):
"""Return a weird string based on the given command.
:param str command: input command
:return: str
Expand All @@ -20,7 +19,7 @@ def _crazy_out(command: str) -> str:
return cr_command


def clear_term(msg: Optional[str] = None) -> Optional[str]:
def clear_term(msg):
"""Clear the terminal and print an optional message.
:param Optional[str] msg: optional message to print after clearing
:return: Optional[str]
Expand All @@ -33,7 +32,7 @@ def clear_term(msg: Optional[str] = None) -> Optional[str]:
return


def ignore_commands(crazy: bool = False):
def ignore_commands(crazy=False):
"""Ignore all commands until 'exit' is issued.
Accept all kind of commands and gracefully ignore them, until the
Expand Down

0 comments on commit 39d9ee2

Please sign in to comment.