fix: pylint fixes

This commit is contained in:
Seaswimmer 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]
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):
"""
Raised when an HTTP request fails.

View file

@ -48,7 +48,7 @@ class File:
def __init__(
self,
createdAt: datetime,
id: int,
id: int, # pylint: disable=redefined-builtin
mimetype: str,
views: int,
name: str,
@ -107,7 +107,7 @@ class Invite:
"""
def __init__(
self,
id: int,
id: int, # pylint: disable=redefined-builtin
code: str,
createdAt: datetime,
expiredAt: datetime,
@ -138,7 +138,7 @@ class OAuth:
"""
def __init__(
self,
id: int,
id: int, # pylint: disable=redefined-builtin
provider: str,
userId: int,
providerId: str,
@ -177,7 +177,7 @@ class User:
"""
def __init__(
self,
id: int,
id: int, # pylint: disable=redefined-builtin
uuid: str,
username: 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
from typing import Dict
from json import JSONDecodeError