-
Notifications
You must be signed in to change notification settings - Fork 119
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
Best import and typing #251
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #251 +/- ##
==========================================
+ Coverage 62.00% 62.36% +0.36%
==========================================
Files 29 30 +1
Lines 2858 2992 +134
Branches 386 405 +19
==========================================
+ Hits 1772 1866 +94
- Misses 998 1035 +37
- Partials 88 91 +3 ☔ View full report in Codecov by Sentry. |
@cclauss does codecov's message require me to change something? his warning and message seem to be off the mark to me |
Ignore the codeccov stuff, I'll fix it soon (the current config has bitrot). |
I am not a fan of changing all those cached_properties. Is there no other way to help pycharm's code intel? |
I agree with you, I tried to do it without changing the "cached_properties" for fear of breaking the code/unit test but I couldn't find anything else. I don't think I'll try any other modifications. |
Problem
It's been almost since I started python programming that I started using pytest. I use pytest-benchmark which I find easy to use and very practical. The only problem I was having trouble figuring out how to make changes to the stats (or just get the stats) and finding the imports for typing when I was a beginner. And this is also the case for novice work colleagues.
Objectives
When I am on PyCharm for example, the objective would be that
Result of my PR :
I realized during development that if I wanted a typing on "Stats" and its attributes (only for setter, if i don't make it, pycharm set hightlight because the attribtues can't be modified), I had to replace the cached_property because it prevents the implementation of an attributes.setter because Python considers that it is on this decorator that he must apply the setter and not the attribute. So I replaced the decorator with a system of cache work with a dictionnary
I was not able to launch toxin without error even before made a modification, but the unit tests did not change between the version I pulled and the version I made.
“Acceptance” tests have been created in “tests/test_acceptance.py”