File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3030
3131
3232class _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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments