Skip to content

Commit

Permalink
Final QA updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gahjelle committed Sep 29, 2023
1 parent b588e81 commit 002c0e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python-312/error-messages/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down
4 changes: 2 additions & 2 deletions python-312/sales.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions python-312/typing/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 002c0e8

Please sign in to comment.