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

Commit58967d1

Browse files
Correct typo in typing.py (GH-100423)
In the docstring of `ParamSpec`, the name of `P = ParamSpec('P')` wasmistakenly written as `'T'`.(cherry picked from commit6898157)Co-authored-by: david-why <david_why@outlook.com>
1 parent2dda668 commit58967d1

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
@@ -901,7 +901,7 @@ def add_two(x: float, y: float) -> float:
901901
902902
Parameter specification variables can be introspected. e.g.:
903903
904-
P.__name__ == 'T'
904+
P.__name__ == 'P'
905905
P.__bound__ == None
906906
P.__covariant__ == False
907907
P.__contravariant__ == False

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp