Update objects.py

This commit is contained in:
Vexia 2022-10-03 15:17:34 -05:00 committed by GitHub
parent a2d7b9f3d4
commit 3e77b91edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1249,7 +1249,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
"""
plural_category = "plural_key"
key = kwargs.get("key", self.key)
key = kwargs.get("key", self.name)
key = ansi.ANSIString(key) # this is needed to allow inflection of colored names
try:
plural = _INFLECT.plural(key, count)