Closed jabdoa2 closed 6 years ago
Hm, there's probably something wrong with the logic that removes "TOP_DIR" from the filename here: https://github.com/dropbox/pyannotate/blob/master/pyannotate_runtime/collect_types.py#L710
Can you experiment with a fix that does what you want and submit it as a PR?
Will do
With pyannotate 1.0.2, you should now be able to pass a filter function to init_types_collection() that can select and normalize filenames. Let me know if this is useful.
In the Mission Pinball Project we check out two repositories: src/mpf/ (https://github.com/missionpinball/mpf/) src/mpf-mc/ (https://github.com/missionpinball/mpf-mc/)
I ran type annotations from within src/mpf/. Most annotations look fine in type_info.json (there is actually an mpf folder below the other src/mpf):
However, some annotations look strange:
There is no mc folder below src/mpf/. It refers to file in src/mpf-mc/ (there is a mpfmc folder in src/mpf-mc). However, I have no idea why this is "mc/mpfmc/" instead of "../mpf-mc/mpfmc/".