GeezerVison is showing github.com — Don't explicitly list direct submodules in __all__ · gitpython-developers/GitPython@fcc7418
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: git/index/__init__.py -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | """Initialize the index package.""" | 5 | 5 |
| 6 | 6 | __all__ = [ | 7 | | - "base", | 8 | | - "fun", | 9 | | - "typ", | 10 | | - "util", | 11 | 7 | "BaseIndexEntry", | 12 | 8 | "BlobFilter", | 13 | 9 | "CheckoutError", | | 16 | 12 | "StageType", | 17 | 13 | ] | 18 | 14 |
| 19 | | -from . import base, fun, typ, util | 20 | 15 | from .base import CheckoutError, IndexFile | 21 | 16 | from .typ import BaseIndexEntry, BlobFilter, IndexEntry, StageType |
Collapse file Copy file name to clipboardExpand all lines: git/objects/__init__.py -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | """Import all submodules' main classes into the package space.""" | 5 | 5 |
| 6 | 6 | __all__ = [ | 7 | | - "base", | 8 | | - "blob", | 9 | | - "commit", | 10 | | - "submodule", | 11 | | - "tag", | 12 | | - "tree", | 13 | 7 | "IndexObject", | 14 | 8 | "Object", | 15 | 9 | "Blob", | | 23 | 17 | "TreeModifier", | 24 | 18 | ] | 25 | 19 |
| 26 | | -from . import base, blob, commit, submodule, tag, tree | 27 | 20 | from .base import IndexObject, Object | 28 | 21 | from .blob import Blob | 29 | 22 | from .commit import Commit | |
Collapse file Copy file name to clipboard +1-10Lines changed: 1 addition & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | # This module is part of GitPython and is released under the | 2 | 2 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | 3 | 3 |
| 4 | | -__all__ = [ | 5 | | - "base", | 6 | | - "root", | 7 | | - "util", | 8 | | - "Submodule", | 9 | | - "UpdateProgress", | 10 | | - "RootModule", | 11 | | - "RootUpdateProgress", | 12 | | -] | | 4 | +__all__ = ["Submodule", "UpdateProgress", "RootModule", "RootUpdateProgress"] | 13 | 5 |
| 14 | | -from . import base, root, util | 15 | 6 | from .base import Submodule, UpdateProgress | 16 | 7 | from .root import RootModule, RootUpdateProgress |
Collapse file Copy file name to clipboardExpand all lines: git/refs/__init__.py -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | 3 | 3 |
| 4 | 4 | __all__ = [ | 5 | | - "head", | 6 | | - "log", | 7 | | - "reference", | 8 | | - "remote", | 9 | | - "symbolic", | 10 | | - "tag", | 11 | 5 | "HEAD", | 12 | 6 | "Head", | 13 | 7 | "RefLog", | | 19 | 13 | "TagReference", | 20 | 14 | ] | 21 | 15 |
| 22 | | -from . import head, log, reference, remote, symbolic, tag | 23 | 16 | from .head import HEAD, Head | 24 | 17 | from .log import RefLog, RefLogEntry | 25 | 18 | from .reference import Reference | |
Collapse file Copy file name to clipboardExpand all lines: git/repo/__init__.py +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 |
| 4 | 4 | """Initialize the repo package.""" | 5 | 5 |
| 6 | | -__all__ = ["base", "fun", "Repo"] | | 6 | +__all__ = ["Repo"] | 7 | 7 |
| 8 | | -from . import base, fun | 9 | 8 | from .base import Repo |
|