diff --git a/assignment.py b/assignment.py index 78465a842..377c314d9 100644 --- a/assignment.py +++ b/assignment.py @@ -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] diff --git a/demo_code.py b/demo_code.py index 1e336515f..f431fe7e9 100644 --- a/demo_code.py +++ b/demo_code.py @@ -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`.""" @@ -35,7 +35,7 @@ class RandomNumberGenerator: def limits(self): return self.limits - + def _test(self): return self.limits @@ -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 @@ -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)):