Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion assignment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import this
import that

*FIRST = [1, 2, 3]
*FIRST = [1, 2, 3, 4]
(*FIRST,) = [1, 2, 3]
*FIRST, a, b = [1, 2, 3, 5]

Expand Down
9 changes: 6 additions & 3 deletions demo_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import os
import subprocess
import ssl
import nothing

# from django.db.models.expressions import RawSQL

AWS_SECRET_KEY = "d6s$f9g!j8mg7hw?n&2"


class BaseNumberGenerator:
"""Declare a method -- `get_number`."""

Expand All @@ -35,7 +35,7 @@ class RandomNumberGenerator:

def limits(self):
return self.limits

def _test(self):
return self.limits

Expand All @@ -47,6 +47,7 @@ def get_number(self, min_max=[1, 10]):

class ImaginaryNumber:
"""Class to represent an imaginary number."""

def __init__(self):
self.real = 0
self.imaginary = 1
Expand Down Expand Up @@ -131,11 +132,13 @@ def chained_comparison():
c = 3
return a < b and b < c


def wrong_callable():
number = ImaginaryNumber()
if hasattr(number, '__call__'):
if hasattr(number, "__call__"):
return number()


if __name__ == "__main__":
args = ["--disable", "all"]
for i in range(len(args)):
Expand Down