container-registry / harbor-api-client

Consider iterating dictionary PYL-C0201
Anti-pattern
Major
a year agoa year old
Consider iterating the dictionary directly instead of calling .keys()
 35    def __init__(self):
 36        """Constructor"""
 37        if self._default:
 38            for key in self._default.__dict__.keys(): 39                self.__dict__[key] = copy.copy(self._default.__dict__[key])
 40            return
 41