Skip to content

Fix dynamically-set __all__ variable #1659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
black lint
  • Loading branch information
DeflateAwning committed Oct 10, 2023
commit a4eb2b3ea7680ac4da01d72746d9e82aa0cb0422
150 changes: 75 additions & 75 deletions git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,81 +64,81 @@ def _init_externals() -> None:
# __all__ must be statically defined by py.typed support
# __all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))]
__all__ = [
'Actor',
'AmbiguousObjectName',
'BadName',
'BadObject',
'BadObjectType',
'BaseIndexEntry',
'Blob',
'BlobFilter',
'BlockingLockFile',
'CacheError',
'CheckoutError',
'CommandError',
'Commit',
'Diff',
'DiffIndex',
'Diffable',
'FetchInfo',
'Git',
'GitCmdObjectDB',
'GitCommandError',
'GitCommandNotFound',
'GitConfigParser',
'GitDB',
'GitError',
'HEAD',
'Head',
'HookExecutionError',
'IndexEntry',
'IndexFile',
'IndexObject',
'InvalidDBRoot',
'InvalidGitRepositoryError',
'List',
'LockFile',
'NULL_TREE',
'NoSuchPathError',
'ODBError',
'Object',
'Optional',
'ParseError',
'PathLike',
'PushInfo',
'RefLog',
'RefLogEntry',
'Reference',
'Remote',
'RemoteProgress',
'RemoteReference',
'Repo',
'RepositoryDirtyError',
'RootModule',
'RootUpdateProgress',
'Sequence',
'StageType',
'Stats',
'Submodule',
'SymbolicReference',
'TYPE_CHECKING',
'Tag',
'TagObject',
'TagReference',
'Tree',
'TreeModifier',
'Tuple',
'Union',
'UnmergedEntriesError',
'UnsafeOptionError',
'UnsafeProtocolError',
'UnsupportedOperation',
'UpdateProgress',
'WorkTreeRepositoryUnsupported',
'remove_password_if_present',
'rmtree',
'safe_decode',
'to_hex_sha',
"Actor",
"AmbiguousObjectName",
"BadName",
"BadObject",
"BadObjectType",
"BaseIndexEntry",
"Blob",
"BlobFilter",
"BlockingLockFile",
"CacheError",
"CheckoutError",
"CommandError",
"Commit",
"Diff",
"DiffIndex",
"Diffable",
"FetchInfo",
"Git",
"GitCmdObjectDB",
"GitCommandError",
"GitCommandNotFound",
"GitConfigParser",
"GitDB",
"GitError",
"HEAD",
"Head",
"HookExecutionError",
"IndexEntry",
"IndexFile",
"IndexObject",
"InvalidDBRoot",
"InvalidGitRepositoryError",
"List",
"LockFile",
"NULL_TREE",
"NoSuchPathError",
"ODBError",
"Object",
"Optional",
"ParseError",
"PathLike",
"PushInfo",
"RefLog",
"RefLogEntry",
"Reference",
"Remote",
"RemoteProgress",
"RemoteReference",
"Repo",
"RepositoryDirtyError",
"RootModule",
"RootUpdateProgress",
"Sequence",
"StageType",
"Stats",
"Submodule",
"SymbolicReference",
"TYPE_CHECKING",
"Tag",
"TagObject",
"TagReference",
"Tree",
"TreeModifier",
"Tuple",
"Union",
"UnmergedEntriesError",
"UnsafeOptionError",
"UnsafeProtocolError",
"UnsupportedOperation",
"UpdateProgress",
"WorkTreeRepositoryUnsupported",
"remove_password_if_present",
"rmtree",
"safe_decode",
"to_hex_sha",
]

# { Initialize git executable path
Expand Down