Skip to content

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Jun 9, 2020
1 parent 430cee7 commit 364930a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions tests/test_lists.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa: F403, F405
from __future__ import absolute_import, division, print_function

from tests.core import mock
Expand Down
1 change: 1 addition & 0 deletions tests/users/test_watched.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa: F403, F405
from __future__ import absolute_import, division, print_function

from tests.core import mock
Expand Down
4 changes: 2 additions & 2 deletions trakt/interfaces/lists/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import absolute_import, division, print_function

from trakt.core.helpers import clean_username, dictfilter
from trakt.core.helpers import dictfilter
from trakt.core.pagination import PaginationIterator
from trakt.interfaces.base import Interface, authenticated
from trakt.interfaces.base import Interface
from trakt.mapper import ListMapper

import requests
Expand Down
4 changes: 2 additions & 2 deletions trakt/interfaces/users/lists/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UsersListsInterface(Interface):

def create(self, username, name, description=None, privacy='private', display_numbers=False,
allow_comments=True, sort_by='rank', sort_how='asc', **kwargs):
"""Create a new list
"""Create a new list.
:param username: Username (or :code:`me`)
:type username: :class:`~python:str`
Expand Down Expand Up @@ -91,7 +91,7 @@ def create(self, username, name, description=None, privacy='private', display_nu
)

def get(self, username, **kwargs):
"""Retrieve lists for user
"""Retrieve lists for user.
:param username: Username (or :code:`me`)
:type username: :class:`~python:str`
Expand Down
3 changes: 1 addition & 2 deletions trakt/mapper/list.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from __future__ import absolute_import, division, print_function

from trakt.core.helpers import dictfilter
from trakt.mapper.user import UserMapper
from trakt.mapper.core.base import Mapper
from trakt.mapper.user import UserMapper


class ListMapper(Mapper):
Expand Down
2 changes: 1 addition & 1 deletion trakt/objects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
__all__ = (
'Comment',
'Episode',
'CustomList', 'List',
'CustomList', 'PublicList', 'List',
'Media',
'Movie',
'Rating',
Expand Down
10 changes: 5 additions & 5 deletions trakt/objects/list/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, client, keys, user):
self.user = user
"""
:type: :class:`trakt.objects.User`
Author
"""

Expand Down Expand Up @@ -81,7 +81,7 @@ def __init__(self, client, keys, user):
:type: :class:`~python:str`
Sort By
**Possible values:**
- :code:`rank`
- :code:`added`
Expand All @@ -102,7 +102,7 @@ def __init__(self, client, keys, user):
:type: :class:`~python:str`
Sort Direction
**Possible values:**
- :code:`asc`
- :code:`desc`
Expand Down Expand Up @@ -172,7 +172,7 @@ def pk(self):

@property
def username(self):
"""Author Username
"""Retrieve author username.
:rtype: :class:`~python:str`
"""
Expand All @@ -183,7 +183,7 @@ def username(self):

@property
def like_count(self):
"""Number of likes
"""Retrieve the number of likes.
:rtype: :class:`~python:int`
"""
Expand Down
2 changes: 1 addition & 1 deletion trakt/objects/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def __init__(self, client, keys=None, index=None):
self.reset_at = None
"""
:type: :class:`~python:datetime.datetime`
Timestamp of when this item was reset (or `None`)
"""

Expand Down

0 comments on commit 364930a

Please sign in to comment.