Skip to content

Commit 2799814

Browse files
committed
fix for mypy
Signed-off-by: emdneto <[email protected]>
1 parent 7e35498 commit 2799814

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

opentelemetry-api/src/opentelemetry/util/_decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131

3232
class _AgnosticContextManager(
33-
contextlib._GeneratorContextManager,
34-
Generic[R], # type: ignore # FIXME use contextlib._GeneratorContextManager[R] when we drop the python 3.8 support
33+
contextlib._GeneratorContextManager, # type: ignore # FIXME use contextlib._GeneratorContextManager[R] when we drop the python 3.8 support
34+
Generic[R],
3535
): # pylint: disable=protected-access
3636
"""Context manager that can decorate both async and sync functions.
3737

opentelemetry-api/tests/trace/test_status.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def test_constructor(self):
3131
def test_invalid_description(self):
3232
with self.assertLogs(level=WARNING) as warning:
3333
status = Status(
34-
status_code=StatusCode.ERROR, description={"test": "val"}
35-
) # type: ignore
34+
status_code=StatusCode.ERROR,
35+
description={"test": "val"}, # type: ignore
36+
)
3637
self.assertIs(status.status_code, StatusCode.ERROR)
3738
self.assertEqual(status.description, None)
3839
self.assertIn(

0 commit comments

Comments
 (0)