fix: pylint fixes

This commit is contained in:
SeaswimmerTheFsh 2023-12-20 23:50:03 -05:00
parent 0a315a6a9c
commit 5db3f7f1f4
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE
4 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,7 @@
[MESSAGES CONTROL] [MESSAGES CONTROL]
disable= disable=
too-many-lines line-too-long
invalid-name
too-few-public-methods
too-many-instance-attributes
too-many-arguments

View file

@ -1,3 +1,5 @@
"""This is a list of all of the exceptions used in PyZipline."""
class HTTPFailure(Exception): class HTTPFailure(Exception):
""" """
Raised when an HTTP request fails. Raised when an HTTP request fails.

View file

@ -48,7 +48,7 @@ class File:
def __init__( def __init__(
self, self,
createdAt: datetime, createdAt: datetime,
id: int, id: int, # pylint: disable=redefined-builtin
mimetype: str, mimetype: str,
views: int, views: int,
name: str, name: str,
@ -107,7 +107,7 @@ class Invite:
""" """
def __init__( def __init__(
self, self,
id: int, id: int, # pylint: disable=redefined-builtin
code: str, code: str,
createdAt: datetime, createdAt: datetime,
expiredAt: datetime, expiredAt: datetime,
@ -138,7 +138,7 @@ class OAuth:
""" """
def __init__( def __init__(
self, self,
id: int, id: int, # pylint: disable=redefined-builtin
provider: str, provider: str,
userId: int, userId: int,
providerId: str, providerId: str,
@ -177,7 +177,7 @@ class User:
""" """
def __init__( def __init__(
self, self,
id: int, id: int, # pylint: disable=redefined-builtin
uuid: str, uuid: str,
username: str, username: str,
avatar: Optional[str], avatar: Optional[str],

View file

@ -1,3 +1,4 @@
"""This module contains the RestAdapter class, which is used to make requests to the Zipline server."""""
import logging import logging
from typing import Dict from typing import Dict
from json import JSONDecodeError from json import JSONDecodeError