-
- Downloads
Add typing to detect_metadata() and related functions
This also moves the call to `detect_metadata()` to `translate_directory_intrinsic_metadata` so type annotations make more sense; and remove a dead/broken code branch in `DirectoryMetadataIndexer.index()` that was detected by mypy.
Showing
- swh/indexer/metadata.py 27 additions, 25 deletionsswh/indexer/metadata.py
- swh/indexer/metadata_detector.py 6 additions, 2 deletionsswh/indexer/metadata_detector.py
- swh/indexer/metadata_dictionary/base.py 13 additions, 9 deletionsswh/indexer/metadata_dictionary/base.py
- swh/indexer/metadata_dictionary/ruby.py 5 additions, 2 deletionsswh/indexer/metadata_dictionary/ruby.py
Loading
Please register or sign in to comment