| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f78587f commit 0327f8f
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ class BlobFilter: | |||
| 40 | 40 | The given paths are given relative to the repository. | |
| 41 | 41 | """ | |
| 42 | 42 | ||
| 43 | - __slots__ = "paths" | ||
| 43 | + __slots__ = ("paths",) | ||
| 44 | 44 | ||
| 45 | 45 | def __init__(self, paths: Sequence[PathLike]) -> None: | |
| 46 | 46 | """ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -109,7 +109,7 @@ class TreeModifier: | |||
| 109 | 109 | the cache of a tree, will be sorted. This ensures it will be in a serializable state. | |
| 110 | 110 | """ | |
| 111 | 111 | ||
| 112 | - __slots__ = "_cache" | ||
| 112 | + __slots__ = ("_cache",) | ||
| 113 | 113 | ||
| 114 | 114 | def __init__(self, cache: List[TreeCacheTup]) -> None: | |
| 115 | 115 | self._cache = cache | |
@@ -214,7 +214,8 @@ class Tree(IndexObject, git_diff.Diffable, util.Traversable, util.Serializable): | |||
| 214 | 214 | """ | |
| 215 | 215 | ||
| 216 | 216 | type: Literal["tree"] = "tree" | |
| 217 | - __slots__ = "_cache" | ||
| 217 | + | ||
| 218 | + __slots__ = ("_cache",) | ||
| 218 | 219 | ||
| 219 | 220 | # Actual integer IDs for comparison. | |
| 220 | 221 | commit_id = 0o16 # Equals stat.S_IFDIR | stat.S_IFLNK - a directory link. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -713,7 +713,7 @@ def update( | |||
| 713 | 713 | class CallableRemoteProgress(RemoteProgress): | |
| 714 | 714 | """An implementation forwarding updates to any callable.""" | |
| 715 | 715 | ||
| 716 | - __slots__ = "_callable" | ||
| 716 | + __slots__ = ("_callable",) | ||
| 717 | 717 | ||
| 718 | 718 | def __init__(self, fn: Callable) -> None: | |
| 719 | 719 | self._callable = fn | |
| Back | FazBrowse Home | New Git URL |
0 commit comments