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

Commit3c8cbe9

Browse files
committed
Mention collections.abc for Sequence
In the deprecation comment for importing Sequence from the toplevel git module. Although the git module imports it from typing,collections.abc.Sequence supports __class_getitem__ since Python3.9 (and typing.Sequence is actually itself deprecated since then).
1 parentc8ad3a3 commit3c8cbe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"RepositoryDirtyError",
5959
"RootModule",
6060
"RootUpdateProgress",
61-
"Sequence",# Deprecated - importthisfrom `typing` instead.
61+
"Sequence",# Deprecated - import from `typing`, or `collections.abc` in 3.9+.
6262
"StageType",
6363
"Stats",
6464
"Submodule",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp