From 002c0e8754582d1d85bef441679a602fc82b4ac5 Mon Sep 17 00:00:00 2001 From: gahjelle Date: Fri, 29 Sep 2023 12:10:59 +0200 Subject: [PATCH] Final QA updates --- python-312/error-messages/shapes.py | 2 +- python-312/sales.py | 4 ++-- python-312/typing/accounts.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python-312/error-messages/shapes.py b/python-312/error-messages/shapes.py index 6de8675567..3a32ddb7eb 100644 --- a/python-312/error-messages/shapes.py +++ b/python-312/error-messages/shapes.py @@ -6,7 +6,7 @@ def __init__(self, radius): self.radius = radius def area(self): - return 2 * pi * radius**2 # noqa: F821 + return pi * radius**2 # noqa: F821 if __name__ == "__main__": diff --git a/python-312/sales.py b/python-312/sales.py index 3ec3e03b1b..585dc9cf6c 100644 --- a/python-312/sales.py +++ b/python-312/sales.py @@ -6,8 +6,8 @@ calendar.MARCH: 6, calendar.APRIL: 14, calendar.MAY: 9, - calendar.JUNE: 14, - calendar.JULY: 21, + calendar.JUNE: 8, + calendar.JULY: 15, calendar.AUGUST: 22, calendar.SEPTEMBER: 20, calendar.OCTOBER: 23, diff --git a/python-312/typing/accounts.py b/python-312/typing/accounts.py index c38edc1b65..f6d923db0a 100644 --- a/python-312/typing/accounts.py +++ b/python-312/typing/accounts.py @@ -5,8 +5,8 @@ def generate_account_number() -> str: """Generate a random eleven-digit account number""" - accno = str(random.randrange(10_000_000_000, 100_000_000_000)) - return f"{accno[:4]}.{accno[4:6]}.{accno[6:]}" + account_number = str(random.randrange(10_000_000_000, 100_000_000_000)) + return f"{account_number[:4]}.{account_number[4:6]}.{account_number[6:]}" @dataclass