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

Commitc862845

Browse files
committed
Fix dynamically-set __all__ variable
1 parent25597cb commitc862845

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

‎git/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,19 @@ def _init_externals() -> None:
6161

6262
# } END imports
6363

64-
__all__= [nameforname,objinlocals().items()ifnot (name.startswith("_")orinspect.ismodule(obj))]
65-
64+
# __all__ must be statically defined by py.typed support
65+
# __all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))]
66+
__all__= ['BadName','safe_decode',
67+
'remove_password_if_present','List','Sequence','Tuple','Union','TYPE_CHECKING',
68+
'PathLike','GitError','InvalidGitRepositoryError','WorkTreeRepositoryUnsupported',
69+
'NoSuchPathError','UnsafeProtocolError','UnsafeOptionError','CommandError','GitCommandNotFound',
70+
'GitCommandError','CheckoutError','CacheError','UnmergedEntriesError','HookExecutionError',
71+
'RepositoryDirtyError','Optional','GitConfigParser','Object','IndexObject','Blob','Commit',
72+
'Submodule','UpdateProgress','RootModule','RootUpdateProgress','TagObject','TreeModifier',
73+
'Tree','SymbolicReference','Reference','HEAD','Head','TagReference','Tag','RemoteReference',
74+
'RefLog','RefLogEntry','Diffable','DiffIndex','Diff','NULL_TREE','GitCmdObjectDB','GitDB',
75+
'Git','Repo','RemoteProgress','PushInfo','FetchInfo','Remote','IndexFile','StageType',
76+
'BlobFilter','BaseIndexEntry','IndexEntry','LockFile','BlockingLockFile','Stats','Actor','rmtree']
6677

6778
# { Initialize git executable path
6879
GIT_OK=None

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp