Skip to content

Commit

Permalink
Replace deprecated typing.Iterable with collections.abc.Iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 4, 2022
1 parent 0a86628 commit c86b138
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/humanize/time.py
Expand Up @@ -6,6 +6,7 @@
"""
from __future__ import annotations

import collections.abc
import datetime as dt
import math
import typing
Expand Down Expand Up @@ -295,7 +296,7 @@ def _quotient_and_remainder(
divisor: int | float,
unit: Unit,
minimum_unit: Unit,
suppress: typing.Iterable[Unit],
suppress: collections.abc.Iterable[Unit],
) -> tuple[float, float]:
"""Divide `value` by `divisor` returning the quotient and remainder.
Expand Down

0 comments on commit c86b138

Please sign in to comment.