From 35c02e5025df5a083dce6e0af83b997ae047919a Mon Sep 17 00:00:00 2001 From: Kwieeciol <64413721+Kwieeciol@users.noreply.github.com> Date: Wed, 21 May 2025 12:41:37 +0200 Subject: [PATCH] Fix example to use correct method of Stack --- docs/source/generics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/generics.rst b/docs/source/generics.rst index 15538dea13bf..5d787d32b005 100644 --- a/docs/source/generics.rst +++ b/docs/source/generics.rst @@ -93,7 +93,7 @@ Using ``Stack`` is similar to built-in container types: stack.push('x') stack2: Stack[str] = Stack() - stack2.append('x') + stack2.push('x') Construction of instances of generic types is type checked (Python 3.12 syntax):