Skip to content

Commit

Permalink
Fix mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fplazaonate committed Apr 3, 2024
1 parent 672921b commit a9fc851
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion meteor/merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Merging(Session):
min_msp_occurrence: int
remove_sample_with_no_msp: bool
output_mpa: bool
mpa_taxonomic_level: str
mpa_taxonomic_level: str|None
output_biom: bool
output_gene_matrix: bool
ranks: dict[str, str] = field(
Expand Down
2 changes: 1 addition & 1 deletion meteor/meteor.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def main() -> None: # pragma: no cover
args.min_msp_occurrence,
args.remove_sample_with_no_msp,
False,
"a",
None,
#args.output_mpa,
#args.taxonomic_level,
args.output_biom,
Expand Down
2 changes: 1 addition & 1 deletion meteor/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Profiler(Session):
meteor: type[Component]
rarefaction_level: int
seed: int
normalization: str
normalization: str|None
core_size: int
msp_filter: float
completeness: float
Expand Down
4 changes: 2 additions & 2 deletions meteor/tests/test_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ def test_save_cram(counter_unique: Counter, datadir: Path, tmp_path: Path) -> No
reads, _ = counter_unique.filter_alignments(
cramdesc
) # pylint: disable=unused-variable
read_list = list(chain(reads.values()))
merged_list = list(chain.from_iterable(read_list))
read_list = reads.values()
merged_list = chain.from_iterable(read_list)
tmpcramfile = tmp_path / "test"
counter_unique.save_cram_strain(tmpcramfile, cramdesc, merged_list, ref_json)
assert tmpcramfile.exists()
Expand Down

0 comments on commit a9fc851

Please sign in to comment.