Fix crash due to runtime import of typing_extensions#2537
Fix crash due to runtime import of typing_extensions#2537pquentin merged 1 commit intopython-trio:masterfrom
typing_extensions#2537Conversation
typing_extensions doesn't presently need to be a runtime dependency.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2537 +/- ##
==========================================
+ Coverage 92.44% 93.50% +1.06%
==========================================
Files 118 118
Lines 16336 16335 -1
Branches 3157 3156 -1
==========================================
+ Hits 15101 15274 +173
+ Misses 1105 955 -150
+ Partials 130 106 -24
|
|
@harahu Do you think we could add a test to avoid introducing this a third time? |
|
Sorry for not picking up on this! @pquentin My suggestion would be to, rather than adding a test, I'd make sure that dynamic analysis in CI (testing, that is) is run in an environment that is as minimal as possible. That could be achieved by separating static and dynamic analysis. To be a bit more concrete: In my understanding, this problem was camouflaged because If we break this up into a new I'm still getting to know this project, so I don't know if my understanding is correct, so please share your thoughts. |
|
Yes that's right. We could have mypy-requirements.txt with contents like: |
|
Alternatively, if |
hi! the issue fixed in #2507 was re-introduced when #2477 was merged.