Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit 83cac8e

Browse files
Pushing latest changes 2021-10-15
1 parent e59dc5f commit 83cac8e

25 files changed

+4529
-1524
lines changed

pyreach/client_annotation.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,19 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
"""Interface for generating client annotations."""
1615

1716
from typing import Callable, Optional
1817

19-
from pyreach.common.proto_gen import logs_pb2 # type: ignore
18+
from pyreach.common.proto_gen import logs_pb2
2019
from pyreach import core
2120

2221

2322
class ClientAnnotation:
2423
"""ClientAnnotation generates annotations of the logs from the client."""
2524

26-
def annotate(
27-
self,
28-
annotation: logs_pb2.ClientAnnotation # type: ignore
29-
) -> core.PyReachStatus:
25+
def annotate(self,
26+
annotation: logs_pb2.ClientAnnotation) -> core.PyReachStatus:
3027
"""Annotate the logs with the given client annotation.
3128
3229
Args:
@@ -39,9 +36,8 @@ def annotate(
3936

4037
def async_annotate(
4138
self,
42-
annotation: logs_pb2.ClientAnnotation, # type: ignore
43-
callback: Optional[Callable[[core.PyReachStatus], None]] = None
44-
) -> None:
39+
annotation: logs_pb2.ClientAnnotation,
40+
callback: Optional[Callable[[core.PyReachStatus], None]] = None) -> None:
4541
"""Annotate the logs with the given client annotation.
4642
4743
Args:

pyreach/common/proto_gen/logs_pb2.py

Lines changed: 90 additions & 76 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)