Skip to content

Commit

Permalink
Remove confusing instance variable example in cheat sheet (#15441)
Browse files Browse the repository at this point in the history
  • Loading branch information
atallahade committed Jun 15, 2023
1 parent ceb4d7f commit cfec717
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/source/cheat_sheet_py3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ Classes
class AuditedBankAccount(BankAccount):
# You can optionally declare instance variables in the class body
audit_log: list[str]
# This is an instance variable with a default value
auditor_name: str = "The Spanish Inquisition"
def __init__(self, account_name: str, initial_balance: int = 0) -> None:
super().__init__(account_name, initial_balance)
Expand Down

0 comments on commit cfec717

Please sign in to comment.