We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eee97f1 commit 01b308eCopy full SHA for 01b308e
1 file changed
debug_toolbar/utils.py
@@ -34,8 +34,7 @@ def get_name_from_obj(obj: t.Any) -> str:
34
name = obj.__class__.__name__
35
36
if hasattr(obj, "__module__"):
37
- module = obj.__module__
38
- name = f"{module}.{name}"
+ name = f"{obj.__module__}.{name}"
39
return name
40
41
@@ -60,7 +59,7 @@ def is_coroutine(endpoint: t.Callable) -> bool:
60
59
return asyncio.iscoroutinefunction(handler)
61
62
63
-def pluralize(value: float, arg: str = "s") -> str:
+def pluralize(value: int, arg: str = "s") -> str:
64
if "," not in arg:
65
arg = f",{arg}"
66
@@ -71,7 +70,7 @@ def pluralize(value: float, arg: str = "s") -> str:
71
70
72
singular_suffix, plural_suffix = bits[:2]
73
74
- if float(value) == 1:
+ if value == 1:
75
return singular_suffix
76
return plural_suffix
77
0 commit comments