feat: Context management using with keyword for a more Pythonic way
#1015
85.84% of diff hit (target 42.42%)
View this Pull Request on Codecov
85.84% of diff hit (target 42.42%)
Annotations
Check warning on line 79 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L79
Added line #L79 was not covered by tests
Check warning on line 102 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L102
Added line #L102 was not covered by tests
Check warning on line 118 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L117-L118
Added lines #L117 - L118 were not covered by tests
Check warning on line 181 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L181
Added line #L181 was not covered by tests
Check warning on line 194 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L194
Added line #L194 was not covered by tests
Check warning on line 211 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L211
Added line #L211 was not covered by tests
Check warning on line 216 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L215-L216
Added lines #L215 - L216 were not covered by tests
Check warning on line 220 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L220
Added line #L220 was not covered by tests
Check warning on line 225 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L224-L225
Added lines #L224 - L225 were not covered by tests
Check warning on line 230 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L229-L230
Added lines #L229 - L230 were not covered by tests
Check warning on line 238 in agentops/context_manager.py
codecov / codecov/patch
agentops/context_manager.py#L238
Added line #L238 was not covered by tests