We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab605ba + b7c7952 commit 429e3d8Copy full SHA for 429e3d8
src/humanize/time.py
@@ -44,11 +44,12 @@ class _UnitMeta(EnumMeta):
44
"""Metaclass for an enum that emits deprecation warnings when accessed."""
45
46
def __getattribute__(self, name):
47
- warnings.warn(
48
- "`Unit` has been deprecated. "
49
- "The enum is still available as the private member `_Unit`.",
50
- DeprecationWarning,
51
- )
+ # Temporarily comment out to avoid warning during 'import humanize'
+ # warnings.warn(
+ # "`Unit` has been deprecated. "
+ # "The enum is still available as the private member `_Unit`.",
+ # DeprecationWarning,
52
+ # )
53
return EnumMeta.__getattribute__(_Unit, name)
54
55
def __getitem__(cls, name):
0 commit comments