Add an age to the dict.
(self)
| 778 | details = {"name": "Tommy"} |
| 779 | |
| 780 | def add_age(self): |
| 781 | """Add an age to the dict.""" |
| 782 | self.details.update({"age": 20}) # pyright: ignore [reportCallIssue, reportArgumentType] |
| 783 | |
| 784 | def change_name(self): |
| 785 | """Change the name in the dict.""" |