[3.11] gh-106625 : Add missing code to tutorial 4.6 example (GH-106623) (#106637)

(cherry picked from commit d0b7e18262)

Co-authored-by: RustyNail <takonoyawarakaage@yahoo.co.jp>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2023-07-11 10:40:17 -07:00 committed by GitHub
parent da15b12d8d
commit 549b528abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -307,8 +307,9 @@ you can use the class name followed by an argument list resembling a
constructor, but with the ability to capture attributes into variables::
class Point:
x: int
y: int
def __init__(self, x, y):
self.x = x
self.y = y
def where_is(point):
match point: