container-registry / harbor-api-client

Useless inheritance from object PYL-R0205
Anti-pattern
Major
a year agoa year old
Class 'RESTClientObject' inherits from object, can be safely removed from bases in python3
 50        return self.urllib3_response.getheader(name, default)
 51
 52
 53class RESTClientObject(object): 54    def __init__(self, configuration, pools_size=4, maxsize=None):
 55        # urllib3.PoolManager will pass all kw parameters to connectionpool
 56        # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75  # noqa: E501
Class 'WorkerPool' inherits from object, can be safely removed from bases in python3
 19from harbor_client.configuration import Configuration
 20
 21
 22class WorkerPool(object): 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
Class 'Worker' inherits from object, can be safely removed from bases in python3
 19from harbor_client.configuration import Configuration
 20
 21
 22class Worker(object): 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
Class 'WebhookTargetObject' inherits from object, can be safely removed from bases in python3
 19from harbor_client.configuration import Configuration
 20
 21
 22class WebhookTargetObject(object): 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
Class 'WebhookPolicy' inherits from object, can be safely removed from bases in python3
 19from harbor_client.configuration import Configuration
 20
 21
 22class WebhookPolicy(object): 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.