Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions demo_code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import random
import pdb
import sys as sys
import abc
import os
import pdb
import random
import subprocess
import abc
import sys as sys

# from django.db.models.expressions import RawSQL

Expand All @@ -27,16 +27,6 @@ def smethod():
def cmethod(cls, something):
"""class method-to-be"""











cmethod = classmethod(cmethod)


Expand All @@ -46,13 +36,17 @@ class RandomNumberGenerator:
def limits(self):
return self.limits

def get_number(self, min_max=[1, 10]):
def get_number(self, min_max=None):
"""Get a random number between min and max."""
if min_max is None:
min_max = [1, 10]
assert all([isinstance(i, int) for i in min_max])
return random.randint(*min_max)


def main(options: dict = {}) -> str:
def main(options: dict = None) -> str:
if options is None:
options = {}
pdb.set_trace()
if "run" in options:
value = options["run"]
Expand All @@ -71,7 +65,9 @@ def main(options: dict = {}) -> str:
f.close()


def moon_chooser(moon, moons=["europa", "callisto", "phobos"]):
def moon_chooser(moon, moons=None):
if moons is None:
moons = ["europa", "callisto", "phobos"]
if moon is not None:
moons.append(moon)

Expand Down