-
-
Notifications
You must be signed in to change notification settings - Fork 128
Adds missing return type to collect_traces
function
#442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds missing return type to collect_traces
function
#442
Conversation
Codecov Report
@@ Coverage Diff @@
## master #442 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 48 48
Lines 1213 1228 +15
Branches 154 154
=========================================
+ Hits 1213 1228 +15
Continue to review full report at Codecov.
|
typesafety/test_primitives/test_tracing/test_collect_traces.yml
Outdated
Show resolved
Hide resolved
Now we pass `collect_traces` directly to `contextmanager` function at end of file to avoid return type problems.
typesafety/test_primitives/test_tracing/test_collect_traces.yml
Outdated
Show resolved
Hide resolved
5b9e980
to
bb5dae2
Compare
To fix type hint errors we separate all the possible `collect_traces` function signatures using `@overload` decorator The implementation of `collect_traces`, now, acts like a factory!
bb5dae2
to
329475d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Just two small features left and we are ready to go!
…tead of passing `factory` through the `contextmanager` function
…collect_traces_context_manager_return_type_two` case
I was wrong in this explanation, in fact it's just a PyCharm error/warning!
I've made the modification to use |
Thanks a lot for the great work! |
closes #441
closes #443