container-registry / harbor-api-client

Consider decorating method with @staticmethod PYL-R0201
Performance
Major
a year agoa year old
Method doesn't use the class instance and could be converted into a static method
240            },
241        }
242
243    def to_debug_report(self):244        """Gets the essential information for debugging.
245
246        :return: The report for debugging.
Method doesn't use the class instance and could be converted into a static method
461                " `POST`, `PATCH`, `PUT` or `DELETE`."
462            )
463
464    def parameters_to_tuples(self, params, collection_formats):465        """Get parameters as list of tuples, formatting collections.
466
467        :param params: Parameters as dict or list of two-tuples
Method doesn't use the class instance and could be converted into a static method
490                new_params.append((k, v))
491        return new_params
492
493    def prepare_post_parameters(self, post_params=None, files=None):494        """Builds form parameters.
495
496        :param post_params: Normal form parameters.
Method doesn't use the class instance and could be converted into a static method
532        else:
533            return ", ".join(accepts)
534
535    def select_header_content_type(self, content_types):536        """Returns `Content-Type` based on an array of content_types provided.
537
538        :param content_types: List of content-types.
Method doesn't use the class instance and could be converted into a static method
593
594        return path
595
596    def __deserialize_primitive(self, data, klass):597        """Deserializes string to primitive type.
598
599        :param data: str.