You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python-312/README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ In this example, you can see how the new implementation of f-strings allows you
140
140
141
141
### Static Typing Improvements
142
142
143
-
You'll find all static typing examples inside the [`typing/`](typing/) directory. You should install the Pyright type checker for PyPI:
143
+
You'll find all static typing examples inside the [`typing/`](typing/) directory. You should install the Pyright type checker from PyPI:
144
144
145
145
```console
146
146
$ python -m pip install pyright
@@ -150,14 +150,14 @@ You can then run type checks by running `pyright`. For some features you need to
150
150
151
151
#### Type Variables and Generic Classes, Functions, and Type Aliases
152
152
153
-
You can find comparisons between the old and the new syntax for type variables in the following files:
153
+
You can find comparisons between the old and the new syntax for type variables in the following files. The new 3.12 syntax is shown in the commented part of the code.
154
154
155
-
-[`generic_queue.py`](typing/generic_queue.py) and [`generic_queue_311.py`](typing/generic_queue_311.py)
156
-
-[`list_helpers.py`](typing/list_helpers.py) and [`list_helpers_311.py`](typing/list_helpers_311.py)
157
-
-[`concatenation.py`](typing/concatenation.py) and [`concatenation_311.py`](typing/concatenation_311.py)
158
-
-[`inspect_string.py`](typing/inspect_string.py) and [`inspect_string_311.py`](typing/inspect_string_311.py)
159
-
-[`deck.py`](typing/deck.py) and [`deck_311.py`](typing/deck_311.py)
160
-
-[`alias.py`](typing/alias.py) and [`alias_311.py`](typing/alias_311.py)
155
+
-[`generic_queue.py`](typing/generic_queue.py)
156
+
-[`list_helpers.py`](typing/list_helpers.py)
157
+
-[`concatenation.py`](typing/concatenation.py)
158
+
-[`inspect_string.py`](typing/inspect_string.py)
159
+
-[`deck.py`](typing/deck.py)
160
+
-[`alias.py`](typing/alias.py)
161
161
162
162
Additionally, [`typed_queue.py`](typing/typed_queue.py) shows the implementation of typed queues without using type variables.
0 commit comments