Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6898157

Browse files
authored
Correct typo in typing.py (python#100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` wasmistakenly written as `'T'`.
1 parent3c033a2 commit6898157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/typing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ def add_two(x: float, y: float) -> float:
11941194
11951195
Parameter specification variables can be introspected. e.g.:
11961196
1197-
P.__name__ == 'T'
1197+
P.__name__ == 'P'
11981198
P.__bound__ == None
11991199
P.__covariant__ == False
12001200
P.__contravariant__ == False

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp