Show More
@@ -1,5 +1,6 | |||||
1 | from __future__ import annotations |
|
1 | from __future__ import annotations | |
2 |
|
2 | |||
|
3 | import abc | |||
3 | import contextlib |
|
4 | import contextlib | |
4 | import os |
|
5 | import os | |
5 | import typing |
|
6 | import typing | |
@@ -127,6 +128,7 class idirstate(Protocol): | |||||
127 | """Callable for checking exec bits.""" # TODO: this comment looks stale |
|
128 | """Callable for checking exec bits.""" # TODO: this comment looks stale | |
128 |
|
129 | |||
129 | @contextlib.contextmanager |
|
130 | @contextlib.contextmanager | |
|
131 | @abc.abstractmethod | |||
130 | def changing_parents(self, repo) -> Iterator: # TODO: typehint this |
|
132 | def changing_parents(self, repo) -> Iterator: # TODO: typehint this | |
131 | """Context manager for handling dirstate parents. |
|
133 | """Context manager for handling dirstate parents. | |
132 |
|
134 | |||
@@ -136,6 +138,7 class idirstate(Protocol): | |||||
136 | """ |
|
138 | """ | |
137 |
|
139 | |||
138 | @contextlib.contextmanager |
|
140 | @contextlib.contextmanager | |
|
141 | @abc.abstractmethod | |||
139 | def changing_files(self, repo) -> Iterator: # TODO: typehint this |
|
142 | def changing_files(self, repo) -> Iterator: # TODO: typehint this | |
140 | """Context manager for handling dirstate files. |
|
143 | """Context manager for handling dirstate files. | |
141 |
|
144 |
General Comments 0
You need to be logged in to leave comments.
Login now