Skip to content

Commit

Permalink
Ignore type error after updating mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jul 23, 2024
1 parent 4be377f commit 4e861bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/barril/units/unit_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,8 @@ def Convert(
return value

if (
category_or_quantity_type.__class__ in (list, tuple)
category_or_quantity_type.__class__
in (list, tuple) # type:ignore[comparison-overlap]
and len(category_or_quantity_type) == 1
):
category_or_quantity_type = category_or_quantity_type[0]
Expand Down

0 comments on commit 4e861bc

Please sign in to comment.