Skip to content

Commit 429e3d8

Browse files
authored
Merge pull request #243 from hugovk/temp-rm-warning
2 parents ab605ba + b7c7952 commit 429e3d8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/humanize/time.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ class _UnitMeta(EnumMeta):
4444
"""Metaclass for an enum that emits deprecation warnings when accessed."""
4545

4646
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-
)
47+
# Temporarily comment out to avoid warning during 'import humanize'
48+
# warnings.warn(
49+
# "`Unit` has been deprecated. "
50+
# "The enum is still available as the private member `_Unit`.",
51+
# DeprecationWarning,
52+
# )
5253
return EnumMeta.__getattribute__(_Unit, name)
5354

5455
def __getitem__(cls, name):

0 commit comments

Comments
 (0)